jitter tutorial 41 Shaders error
I am trying to work with the jitter tutorial # 41 ‘shaders’
I get the following error message:
•error:–START GLSL INFO LOG: vp –
ERROR: 0.26: ‘assign’ : cannot convert from ’4-component vector of float’ to ‘varying 3-component vector of float’
•error:–END GLSL INFO LOG: vp –
•error: jit.gl.shader: GLSL program failed to compile.
I am on a last generation powerbook 15" 1.67Ghz
ATI Mobility Radeon 9700 – VRAM (Total):128 MB
2 monitors – laptop and "Studio Display 21"
the problem persists regardless of which monitor I render on.
Anyone have any suggestions about this
This may be due to some issues we had when Apple introduced a native Cg
compiler. Please replace your shaders with the ones at:
FWIW, we will have updated shaders with the next Jitter version that are
all fully GLSL compliant.
Let us know how you get on.
thanks for the speedy reply!
but no luck – same error…
I replaced shaders and restarted max…
any other thoughts?
GLSL doesn’t allow automatic promotion from one type to another. It
is very strict about this. Looks like you need to find the offending
line in the shader and and cast it to a vec3. You can do this like
vec3 myvec3 = vec3(myvec4);
that should solve your problem.
Try replacing mat.dirperpixel.jxs in the tutorial folder with the
Let us know how that goes.
thank you – that works perfectly!