only enable fog for 3d
This commit is contained in:
parent
5059802d09
commit
ea0af5159f
@ -458,7 +458,7 @@ void finally_draw_command(DeferredCommandDraw command) {
|
|||||||
glDepthRange(command.depth_range_low, command.depth_range_high);
|
glDepthRange(command.depth_range_low, command.depth_range_high);
|
||||||
|
|
||||||
/* TODO: cache it for constant parameters, which is a common case */
|
/* TODO: cache it for constant parameters, which is a common case */
|
||||||
if (fabsf(0.0f - ctx.game_copy.fog_density) >= 0.00001f) {
|
if (command.pipeline == PIPELINE_SPACE && fabsf(0.0f - ctx.game_copy.fog_density) >= 0.00001f) {
|
||||||
glEnable(GL_FOG);
|
glEnable(GL_FOG);
|
||||||
|
|
||||||
/* clamp to valid range */
|
/* clamp to valid range */
|
||||||
|
Loading…
Reference in New Issue
Block a user