Talk:GLSL Programming/Blender/Shading in View Space

= Blender bug? =

The value of my_uniform in the fragment shader was always 0.0 in Solid mode.

When I switched to Textured mode, Blender provided the appropriate value :) Apparently uniform don't work so well in Solid mode - when I replaced the value by hand, the shader worked, but whenever I used the uniform, the mesh turned black.


 * OK, we'll have to mention that in the minimal shader tutorial. --Martin Kraus (discuss • contribs) 12:34, 29 August 2011 (UTC)