-
If I create a pass and set If it does skip the entire pass, then if I've already created a postprocessing sequence, for example:
If I see performance regression and set Bloom and SSAO to BlendFunction.SKIP, will that immediately skip the calculation of those passes? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Setting the blend function of an effect's blendMode via setBlendFunction() will always trigger a recompilation of the associated effect material. When the blend function is set to
Not entirely. Bloom and SSAO won't show up in the effect shader, but they will still calculate their offscreen textures. If you want to completely enable/disable effects on the fly, you should prepare multiple instances of Skipping blending is mainly intended for more complex effect compositions that require deferred blending. |
Beta Was this translation helpful? Give feedback.
Setting the blend function of an effect's blendMode via setBlendFunction() will always trigger a recompilation of the associated effect material. When the blend function is set to
BlendFunction.SKIP
, the effect's main fragment shader won't be integrated into the final shader at all, but theupdate()
method of the effect will still be called. This is because the effect may render to offscreen render targets (like the bloom overlay) which could be used by other effects further down the pipeline.Not entirely. Bloom and SSAO won't show up in the effect s…