mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-21 11:31:41 +00:00
- changed texture2d to texture in modified shader sources.
This commit is contained in:
parent
efb41cd268
commit
3b0c1aa37d
2 changed files with 2 additions and 2 deletions
|
@ -2,6 +2,6 @@ uniform sampler2D BrightmapTexture;
|
|||
|
||||
vec4 ProcessLight(vec4 color)
|
||||
{
|
||||
vec4 brightpix = desaturate(texture2D(BrightmapTexture, vTexCoord.st));
|
||||
vec4 brightpix = desaturate(texture(BrightmapTexture, vTexCoord.st));
|
||||
return vec4(min (color.rgb + brightpix.rgb, 1.0), color.a);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ uniform vec4 uDetailScale;
|
|||
vec4 ProcessTexel(vec2 coord)
|
||||
{
|
||||
vec2 st2 = vec2(coord.s * uDetailParms.x + uDetailParms.y, coord.t * uDetailParms.z + uDetailParms.w);
|
||||
vec4 detailtex = desaturate(texture2D(texture2, st2));
|
||||
vec4 detailtex = desaturate(texture(texture2, st2));
|
||||
detailtex = clamp(detailtex * uDetailScale.x, uDetailScale.y, uDetailScale.z);
|
||||
|
||||
return getTexel(coord.st) * vec4(detailtex.rgb, 1.0);
|
||||
|
|
Loading…
Reference in a new issue