fragPosition was multiplied by mvp*instanceTransform, but it should only be multiplied by instanceTransform. Compare to lighting.vs, there we only use mvp for gl_Position, but matModel for the fragPosition. |
||
---|---|---|
.. | ||
glsl100 | ||
glsl120 | ||
glsl330 |
fragPosition was multiplied by mvp*instanceTransform, but it should only be multiplied by instanceTransform. Compare to lighting.vs, there we only use mvp for gl_Position, but matModel for the fragPosition. |
||
---|---|---|
.. | ||
glsl100 | ||
glsl120 | ||
glsl330 |