The cursor channel of the rain pass is now propagated in isolation to the effect passes.

This commit is contained in:
Rezmason
2022-09-15 23:33:47 -07:00
parent 17a615eec7
commit 6969514c9b
9 changed files with 48 additions and 33 deletions

View File

@@ -15,7 +15,7 @@ void main() {
vec3 bgColor = texture2D(backgroundTex, vUV).rgb;
// Combine the texture and bloom, then blow it out to reveal more of the image
float brightness = pow(getBrightness(vUV).r, 1.5);
vec4 brightness = getBrightness(vUV);
gl_FragColor = vec4(bgColor * brightness, 1.0);
gl_FragColor = vec4(bgColor * (brightness.r + brightness.g * 2.0), 1.0);
}