Skip to content

Commit

Permalink
Proper way to fix room shader.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lwmte committed Jul 28, 2015
1 parent dd0158b commit 6883b00
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions shaders/room.vsh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,8 @@ void main(void)
fPerturb = 0.5 * abs(sin(fSum * 8.0 + fTime)) + 0.5;
fGlow = 0.5 * abs(sin(8.0 + fTime)) + 0.5;

float fResult = tintMult * mix(1.0, fPerturb, 1.0) * mix(1.0, fGlow, 0.8);

vCol.r *= fResult;
vCol.g *= fResult;
vCol.b *= fResult;
vCol *= tintMult * mix(1.0, fPerturb, 1.0) * mix(1.0, fGlow, 0.8);
vCol.a = 1.0;
#endif

#if IS_FLICKER
Expand Down

0 comments on commit 6883b00

Please sign in to comment.