mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 14:19:30 -07:00
Bloom pass can now be disabled.
This commit is contained in:
@@ -17,6 +17,18 @@ const levelStrengths = Array(pyramidHeight)
|
||||
.reverse();
|
||||
|
||||
export default (regl, config, inputs) => {
|
||||
|
||||
const enabled = config.bloomSize > 0 && config.bloomStrength > 0;
|
||||
|
||||
if (!enabled) {
|
||||
return makePass(
|
||||
{
|
||||
primary: inputs.primary,
|
||||
bloom: makePassFBO(regl)
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
const uniforms = extractEntries(config, [
|
||||
"bloomStrength",
|
||||
"highPassThreshold"
|
||||
|
||||
Reference in New Issue
Block a user