Skip to content

Commit

Permalink
Fix sky shader
Browse files Browse the repository at this point in the history
  • Loading branch information
gecko0307 committed Oct 28, 2021
1 parent 3342c84 commit c0344d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions data/__internal/shaders/Rayleigh/Rayleigh.frag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void main()
vec2 velocity = posScreen - prevPosScreen;
const float blurMask = 1.0;

//fragColor = vec4(env, 1.0);
fragRadiance = vec4(env, 0.0);
//fragColor = vec4(env, 0.0);
fragRadiance = vec4(env, 1.0);
fragVelocity = vec4(velocity, blurMask, 0.0);
}
2 changes: 1 addition & 1 deletion data/__internal/shaders/Sky/Sky.frag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ void main()
const float blurMask = 1.0;

fragColor = vec4(fragDiffuse, 0.0);
fragRadiance = vec4(fragDiffuse, 0.0);
fragRadiance = vec4(fragDiffuse, 1.0);
fragVelocity = vec4(velocity, blurMask, 0.0);
}

0 comments on commit c0344d7

Please sign in to comment.