Fixed the issue where bloom does not work when the clear flag of the camera is set to clear color. (#16509)

This commit is contained in:
GengineJS
2023-11-15 21:13:56 +08:00
committed by GitHub
parent 330b92a179
commit f447ffd320
@@ -256,7 +256,7 @@ CCProgram combine-fs %{
void main() {
vec4 hdrColor = texture(outputResultMap, v_uv);
vec3 bloomColor = texture(bloomTexture, v_uv).rgb;
vec3 result = hdrColor.rgb + bloomColor * texSize.w * hdrColor.a;
vec3 result = hdrColor.rgb + bloomColor * texSize.w;
fragColor = vec4(result, hdrColor.a);
}