help me understand this asm shader,
Crossbones+ - Reputation: 4008
Posted 26 August 2012 - 11:56 PM
The subsequent "mov" instruction copies input texture coordinates to the output, without modifying them.
Dp4 is a dot product with 4 components. In the two last rows, the dot product of vertex position and some constants are stored in the second texture coordinate output register. That said, the meaning of the constants c4 and c5 is unknown. Taken out of the context in which the code is used, it is very difficult to guess the actual purpose of the instructions. Dot product, in general, can be thought of as a measure of similarity between two directional vectors.
Edited by Nik02, 26 August 2012 - 11:59 PM.