mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user