I’m just getting my feet wet in ShaderLab and am a bit confused as to why I can’t find a simple list of property types. Is there a reference for this out there? I’m looking for a way to specify a 4x4 transformation matrix as a property.
As a secondary question, is there any helper methods to generate a model-view-transform given a world-space-transform, near/far plane distances, aspect ratio and view angle? (or maybe even just the dimensions of a texture?).
My end goal is to simply render the scene from the perspective of an object that is not a camera… (Yes, it’s a light source, and this is as much of a way for me to start learning the shader pipeline as it is me not wanting to fork out the money for pro).
To be completely explicit – this doesn’t compile:
Properties
{
_LightSource ("Light Source", float4x4)
}