mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 19:15:41 +00:00
check if FORCE_OPAQUE is available before using it.
This commit is contained in:
parent
40f18d6a8b
commit
e581b61ecb
3 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ void main()
|
|||
#endif
|
||||
gl_FragData[0].xyz = mix(gl_FragData[0].xyz, gl_Fog.color.xyz, fogValue);
|
||||
|
||||
#if FORCE_OPAQUE
|
||||
#if defined(FORCE_OPAQUE) && FORCE_OPAQUE
|
||||
// having testing & blending isn't enough - we need to write an opaque pixel to be opaque
|
||||
gl_FragData[0].a = 1.0;
|
||||
#endif
|
||||
|
|
|
@ -45,7 +45,7 @@ void main()
|
|||
float fogValue = clamp((linearDepth - gl_Fog.start) * gl_Fog.scale, 0.0, 1.0);
|
||||
#endif
|
||||
|
||||
#if FORCE_OPAQUE
|
||||
#if defined(FORCE_OPAQUE) && FORCE_OPAQUE
|
||||
gl_FragData[0].a = 1.0;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -220,7 +220,7 @@ void main()
|
|||
#endif
|
||||
gl_FragData[0].xyz = mix(gl_FragData[0].xyz, gl_Fog.color.xyz, fogValue);
|
||||
|
||||
#if FORCE_OPAQUE
|
||||
#if defined(FORCE_OPAQUE) && FORCE_OPAQUE
|
||||
// having testing & blending isn't enough - we need to write an opaque pixel to be opaque
|
||||
gl_FragData[0].a = 1.0;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue