// Project the brick pos and normal. worldPos.z += pow(viewDelta.w*0.02, 2.5); gl_Position = gl_ProjectionMatrix * world2Cam * vec4(worldPos, 1.0f);
try putting an f after 0.02 and 2.5glsl is autistic about floats and wants all numbers to be floats and i'm not sure if having a decimal point is clear enough for it
I think I know why it's not working, but I'll just give you a link to a modded .vert file with the effect:http://pastebin.com/6FF4JQN1Replace .vert files as needed to use this effect with soft shadow shaders or any other shader.