Author Topic: Trying to get shader modification to work  (Read 881 times)

I don't know where this belongs.
I went to this thread and followed the instructions on how to do this:

This is what I did:
Code: [Select]
// Project the brick pos and normal.
worldPos.z += pow(viewDelta.w*0.02, 2.5);
        gl_Position = gl_ProjectionMatrix * world2Cam * vec4(worldPos, 1.0f);
Can someone help me make this work?

try putting an f after 0.02 and 2.5
glsl 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

try putting an f after 0.02 and 2.5
glsl 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
No luck.

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/6FF4JQN1
Replace .vert files as needed to use this effect with soft shadow shaders or any other shader.
« Last Edit: October 30, 2016, 03:08:34 AM by QuadStorm »

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/6FF4JQN1
Replace .vert files as needed to use this effect with soft shadow shaders or any other shader.
That works. Thanks a lot.