The primary and bloom textures are now combined with a weight so that fainter bloom doesn't create a fainter overall effect.

This commit is contained in:
Rezmason
2021-12-24 21:33:39 -08:00
parent a962a6128d
commit 928067996d
20 changed files with 113 additions and 35 deletions

View File

@@ -1,5 +1,4 @@
struct Config {
bloomStrength : f32;
pyramidHeight : f32;
};
@@ -63,5 +62,5 @@ struct ComputeInput {
sum = sum + textureSampleLevel( tex4, linearSampler, uv, i + 1.0 ) * weight;
}
textureStore(outputTex, coord, sum * config.bloomStrength);
textureStore(outputTex, coord, sum);
}