Fix T99606: Regression: TexCoordinate losing precision far away from origin
Same root cause as T99128. The fix also needed to be done in another place.
This commit is contained in:
@@ -97,7 +97,7 @@ GlobalData init_globals(void)
|
||||
GlobalData surf;
|
||||
|
||||
# if defined(WORLD_BACKGROUND) || defined(PROBE_CAPTURE)
|
||||
surf.P = -cameraVec(worldPosition);
|
||||
surf.P = transform_direction(ViewMatrixInverse, viewCameraVec(viewPosition));
|
||||
surf.N = surf.Ng = -surf.P;
|
||||
surf.ray_length = 0.0;
|
||||
# else
|
||||
|
||||
Reference in New Issue
Block a user