Closed vorg closed 4 years ago
My first guess this is due to non existing camera.postprocessing
flag https://github.com/pex-gl/pex-renderer/blob/master/skybox.js#L140
uUseTonemapping: opts.backgroundMode ? !camera.postprocess : false,
New
const postProcessingCmp = camera.entity ? camera.entity.getComponent('PostProcessing') : null
const useTonemapping = !(postProcessingCmp && postProcessingCmp.enabled)
...
uUseTonemapping: opts.backgroundMode ? useTonemapping : false,
uExposure: opts.backgroundMode ? camera.exposure : 1
Closing this issue and moving z-fighting to a new one
Closing this issue and moving z-fighting to a new one