Ogre Version: master branch
Operating System: Ubuntu 22.04
Render System: OpennGL ES 2.0
Please help me with shader problem.
Using OgreUnifiedShader.h how can I write equivalent of
Code: Select all
varying mat3 rotMatrix;
? which positions can be used for that? I see that 0-15 are used by attributes,
but I see sample shaders use these indices for OUT(mat3 rotMatrix, TEXCOORD1) which is strange to me. How many varyings can I have?
I'm porting shader with large number of varyings so I wonder...
if I do OUT(mat3 rotMatrix, 17) in vertex shader and IN(mat3 rotMatrix, 17) I get shader linking errors.