mirror of
https://github.com/aap/librw.git
synced 2024-11-28 06:35:41 +00:00
fixed d3d fog bug
This commit is contained in:
parent
556f6af1b5
commit
990a7e21dd
@ -791,6 +791,8 @@ beginUpdate(Camera *cam)
|
|||||||
d3dShaderState.fogData.start = cam->fogPlane;
|
d3dShaderState.fogData.start = cam->fogPlane;
|
||||||
d3dShaderState.fogData.end = cam->farPlane;
|
d3dShaderState.fogData.end = cam->farPlane;
|
||||||
d3dShaderState.fogData.range = 1.0f/(cam->fogPlane - cam->farPlane);
|
d3dShaderState.fogData.range = 1.0f/(cam->fogPlane - cam->farPlane);
|
||||||
|
// TODO: not quite sure this is the right place to do this...
|
||||||
|
d3dShaderState.fogData.disable = rwStateCache.fogenable ? 0.0f : 1.0f;
|
||||||
d3dShaderState.fogDisable.start = 0.0f;
|
d3dShaderState.fogDisable.start = 0.0f;
|
||||||
d3dShaderState.fogDisable.end = 0.0f;
|
d3dShaderState.fogDisable.end = 0.0f;
|
||||||
d3dShaderState.fogDisable.range = 0.0f;
|
d3dShaderState.fogDisable.range = 0.0f;
|
||||||
|
Loading…
Reference in New Issue
Block a user