Permalink
Browse files

fix a shader-warning

  • Loading branch information...
1 parent fcf3777 commit 23266bb7eca7bc847ca2c43600fa86c5262ce4cb @kusma committed Oct 18, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 data/postprocess.fx
View
@@ -168,8 +168,8 @@ float3 color_correct(float3 color)
{
#if 1
float3 uvw = pow(color, 1.0 / 2.2) * (31.0 / 32) + 0.5 / 32;
- return lerp(tex3Dlod(color_map1_samp, float4(uvw, 0)),
- tex3Dlod(color_map2_samp, float4(uvw, 0)),
+ return lerp(tex3Dlod(color_map1_samp, float4(uvw, 0)).rgb,
+ tex3Dlod(color_map2_samp, float4(uvw, 0)).rgb,
color_map_lerp);
#else
return sqrt(color);

0 comments on commit 23266bb

Please sign in to comment.