Author Topic: Rounded "earth" shader/thing?  (Read 1420 times)

omg yes. tell us how to do et
put
Code: [Select]
worldPos.z -= pow(viewDelta.w*0.02, 2.5);
just before
Code: [Select]
gl_Position = gl_ProjectionMatrix * world2Cam * vec4(worldPos, 1.0f);
in minimum_vert.glsl and/or renderCsm_vert.glsl

change the '-' into a '+' to invert the effect. change the exponent (in this case 2.5) to increase or decrease the curvature. 1.5 to 2.5 is good. I did say it was simple :p