summaryrefslogtreecommitdiff
path: root/servers/rendering/rasterizer_rd/shaders
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2020-04-23 13:56:04 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2020-04-23 13:56:04 +0300
commit2bb119c0882005468186d3f05c2902c13f2b7501 (patch)
treec81728064104552fc1bba1f43ed79145d3b23547 /servers/rendering/rasterizer_rd/shaders
parent17cacb473769ddb33d329f0d3bb6f8fad9d25670 (diff)
Fix "redefinition of 'ssr' with a different type" shader compile error.
Diffstat (limited to 'servers/rendering/rasterizer_rd/shaders')
-rw-r--r--servers/rendering/rasterizer_rd/shaders/specular_merge.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/rendering/rasterizer_rd/shaders/specular_merge.glsl b/servers/rendering/rasterizer_rd/shaders/specular_merge.glsl
index b28250318e..b24f7dccc7 100644
--- a/servers/rendering/rasterizer_rd/shaders/specular_merge.glsl
+++ b/servers/rendering/rasterizer_rd/shaders/specular_merge.glsl
@@ -48,8 +48,8 @@ void main() {
frag_color.a = 0.0;
#ifdef MODE_SSR
- vec4 ssr = texture(ssr, uv_interp);
- frag_color.rgb = mix(frag_color.rgb, ssr.rgb, ssr.a);
+ vec4 ssr_color = texture(ssr, uv_interp);
+ frag_color.rgb = mix(frag_color.rgb, ssr_color.rgb, ssr_color.a);
#endif
#ifdef MODE_MERGE