ThreeJS使用后处理模型变暗处理,使用gammaPass校正

发布于 2024-07-07 17:41:53

gammaPass一定要放在最后面add!!!

import { GammaCorrectionShader } from 'three/addons/shaders/GammaCorrectionShader.js';
import { ShaderPass } from 'three/addons/postprocessing/ShaderPass.js';


  const gammaPass = new ShaderPass(GammaCorrectionShader);
    effectComposer.addPass(renderScene)

    effectComposer.addPass(gammaPass)
1 条评论

发布
问题