Hi! I’ve been wanting to achieve a “curved world effect” for a project. It’s a shader effect often used in 3D runners game. A good example is this unity package - Curved World - Classic Runner - Asset Store .
Should i try and implement it as a new shader in babylonJS? And then add whatever lighting/shading i would need for this project?
Or is it a way i could add this effect to the vertexshader of the babylon standard material somehow?
Here’s a screenshot of how the game i’m working on is looking now. As you can see it would benefit from the curved world effect
Here’s what I get if I copy that example: https://playground.babylonjs.com/#DEV5Y5#4
And it does Not look right
As I have no idea what I’m doing, I’m using view in place of 3JS’ modelViewMatrix and viewProjection in place of 3JS’ projectionMatrix.
Thanks! That’s really helpful in how to move forward with it! And it does look like it does something right at least, but not all the way. I’ll have a closer look a bit later!
One is possible ways (at least to imitate curving in this case) could be some refraction plane or mesh just before the camera; I suppose it is also possible to write own projection matrix.