Fix weird water glow on edge of land due to broken alpha value

meow-7.2.2
Drake Arconis 2016-12-16 09:52:04 -05:00
parent d36f73fecf
commit 7589cd490e
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ void main()
vec3 screenspacewavef = normalize((norm_mat*vec4(wavef, 1.0)).xyz);
frag_data[0] = vec4(color.rgb, color); // diffuse
frag_data[0] = vec4(color.rgb, color.a); // diffuse
frag_data[1] = vec4(0); // speccolor, spec
frag_data[2] = vec4(encode_normal(screenspacewavef.xyz*0.5+0.5), 0.05, 0);// normalxy, 0, 0
}