BSL:Frustum and fog: Difference between revisions

m
(woot)
 
Line 54: Line 54:
:Z = z_f * ( z - z_n ) / [ z * ( z_f - z_n ) ]
:Z = z_f * ( z - z_n ) / [ z * ( z_f - z_n ) ]
:z = z_n * z_f / [ z_f - Z*( z_f - z_n )]
:z = z_n * z_f / [ z_f - Z*( z_f - z_n )]
By default, z_f is 10000 and z_n is 4, so Z=0.975 corresponds roughly to z=157.5
By default, z_f is 10000 and z_n is 4, so Z=0.925 corresponds roughly to z=157.5