Hi Folks,
I’ve been looking at the source code for some of the standard and pro assets that come packaged with Unity and I have a question about ‘SetTexture’ and the keyword ‘Matrix’.
In the blob shadow projector there is this line of code:
SetTexture [_ShadowTex] {
combine texture, ONE - texture
Matrix [_Projector]
}
I think I’ve figured out what this does, but I can’t seem to find any reference in the documentation (perhaps this is an OpenGl construct?) regarding the Matrix command (where it can be legally used and it’s description). If someone would point me to the documentation where this is discussed (or even explain what it does and where it can be legally used) it would be much appreciated.
In the same regard, are there any more additional commands that can be used with SetTexture that are not listed in the docs? According to what I’ve read in the documentation that I’ve found, the only two valid parameters/commands in the SetTexture block appear to be ‘combine’ and ‘ConstantColor’.
Cheers,
Paul Mikulecky
Lost Pencil Animation Studios Inc.
http://www.lostpencil.com