Unlit Fake Curved World Shader


Tried to get world position from depth texture, but it didn’t work.. then founded COMPUTE_DEPTH_01 instead,
makes nice curve effect when applied to meshes (pushing the y vertices down based on depth).. although breaks a bit depending on camera rotation/position..

Shader source:

without curve-shader:


But if you are looking for nicer curve effect, here’s one:

2 Comments + Add Comment

  • Rather than grabbing depth, since you’re in the vertex shader anyway, couldn’t you just apply MV and P transformations separately, and then do your transformation while in view space? Unless you’ve scaled the camera transform, you should be at world scale in local camera space at that point.

    • Yes, wasn’t really useful effect the way i left it..and would look nicer if do real curve, instead of just pushing on Y..

Leave a comment


Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.