A bit of fun....

Coordinator
Apr 15, 2011 at 2:53 PM

For a bit of fun try adding the following line to the shader

output.Position.y -= output.Distance * output.Distance * 0.0005f;

directly after this line

output.Distance = length(CameraPosition - worldPosition);

This will create a spherical world with an artifical horizon by offsetting the y coordinate of vertices based on the distance from the camera. You'll need a fairly big world size to see the effect properly. You can modify the offset amount by increasing/decreasing 0.0005f.

Coordinator
Apr 16, 2011 at 4:18 AM
Edited Apr 16, 2011 at 4:18 AM

that s really cool. try with 0.005 with current default view distance to see the effect.

try 0.05 with player physics : very cute . Then press F1 to enter free cam mode : you ll throw up !

With this and with some sort of circular array (a specialized class of dictionary2)  the world can be round. 

Edit : current in use effect is LightingAOBlockEffect.fx