mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- added missing shader #define.
This commit is contained in:
parent
c96e04e6c9
commit
5ad1d74f62
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@ vec4 ProcessTexel()
|
||||||
// z is the depth in view space, positive going into the screen
|
// z is the depth in view space, positive going into the screen
|
||||||
float z = abs(pixelpos.w);
|
float z = abs(pixelpos.w);
|
||||||
|
|
||||||
|
#ifdef NPOT_EMULATION
|
||||||
// Coordinate adjustment for NPOT textures. It is somehow fitting that Build games exploited this texture wrapping quirk of the software rendering engine...
|
// Coordinate adjustment for NPOT textures. It is somehow fitting that Build games exploited this texture wrapping quirk of the software rendering engine...
|
||||||
if (uNpotEmulation.y != 0.0)
|
if (uNpotEmulation.y != 0.0)
|
||||||
{
|
{
|
||||||
|
@ -26,6 +27,7 @@ vec4 ProcessTexel()
|
||||||
coordX += uNpotEmulation.x * floor(mod(coordY, uNpotEmulation.y));
|
coordX += uNpotEmulation.x * floor(mod(coordY, uNpotEmulation.y));
|
||||||
coordY = period + mod(coordY, uNpotEmulation.y);
|
coordY = period + mod(coordY, uNpotEmulation.y);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
newCoord = vec2(coordX, coordY);
|
newCoord = vec2(coordX, coordY);
|
||||||
|
|
||||||
color = texture(tex, newCoord);
|
color = texture(tex, newCoord);
|
||||||
|
|
Loading…
Reference in a new issue