mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-19 08:01:50 +00:00
- fixed: shaders with NO_LAYERS defined may not apply brightmap and glowmap.
These are undefined for such fragments.
This commit is contained in:
parent
796890bb98
commit
e1a5f61f8c
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
layout(location = 0) in vec4 vTexCoord;
|
layout(location = 0) in vec4 vTexCoord;
|
||||||
layout(location = 1) in vec4 vColor;
|
layout(location = 1) in vec4 vColor;
|
||||||
layout(location = 2) in vec4 pixelpos;
|
layout(location = 2) in vec4 pixelpos;
|
||||||
|
@ -628,7 +629,7 @@ vec4 getLightColor(Material material, float fogdist, float fogfactor)
|
||||||
color = min(color, 1.0);
|
color = min(color, 1.0);
|
||||||
|
|
||||||
// these cannot be safely applied by the legacy format where the implementation cannot guarantee that the values are set.
|
// these cannot be safely applied by the legacy format where the implementation cannot guarantee that the values are set.
|
||||||
#ifndef LEGACY_USER_SHADER
|
#if !defined LEGACY_USER_SHADER && !defined NO_LAYERS
|
||||||
//
|
//
|
||||||
// apply glow
|
// apply glow
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue