Skip to content
Snippets Groups Projects
Commit 5aaab576 authored by Graham Madarasz's avatar Graham Madarasz
Browse files

NORSPEC-156 back to the fix that actually works

parent 0ee77e86
No related branches found
No related tags found
No related merge requests found
...@@ -42,9 +42,12 @@ void main() ...@@ -42,9 +42,12 @@ void main()
{ {
float shadow = 1.0; float shadow = 1.0;
vec4 color = diffuseLookup(vary_texcoord0.xy)* vertex_color; vec4 color = diffuseLookup(vary_texcoord0.xy) * pow(vertex_color.rgb,vec3(2.2f));
color.rgb = fullbrightAtmosTransport(color.rgb); color.rgb = fullbrightAtmosTransport(color.rgb);
color.rgb = fullbrightScaleSoftClip(color.rgb); color.rgb = fullbrightScaleSoftClip(color.rgb);
frag_color = color; frag_color = color;
} }
...@@ -57,8 +57,6 @@ void main() ...@@ -57,8 +57,6 @@ void main()
vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy; vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy;
calcAtmospherics(pos.xyz); calcAtmospherics(pos.xyz);
vertex_color.rgb = pow(diffuse_color, vec3(2.2f,2.2f,2.2f)); vertex_color = diffuse_color;
vertex_color.a = diffuse_color.a;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment