Fix "redefinition of 'ssr' with a different type" shader compile error.

This commit is contained in:
bruvzg 2020-04-23 13:56:04 +03:00
parent 17cacb4737
commit 2bb119c088
No known key found for this signature in database
GPG Key ID: FCED35F1CECE0D3A

View File

@ -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