skin split streaming

This commit is contained in:
aap
2016-07-09 12:24:26 +02:00
parent bd06c54c57
commit f4f4c088ff
6 changed files with 83 additions and 35 deletions

View File

@@ -195,6 +195,9 @@ calczShiftScale(Camera *cam)
float32 f = cam->farPlane;
float32 N = engine->zNear;
float32 F = engine->zFar;
// RW does this
N += (F - N)/10000.0f;
F -= (F - N)/10000.0f;
if(cam->projection == Camera::PERSPECTIVE){
cam->zScale = (N - F)*n*f/(f - n);
cam->zShift = (F*f - N*n)/(f - n);