Showing the changes to libraries/render-utils/src/ToneMappingEffect.cpp (1 of 1213 files). Show all
Unified · Split
| @@ -28,7 +28,7 @@ ToneMappingEffect::ToneMappingEffect() { · 27 unmodified lines | |||
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | void ToneMappingEffect::init() { | 30 | void ToneMappingEffect::init() { |
| 31 | auto blitPS = gpu::ShaderPointer(gpu::Shader::createPixel(std::string(toneMapping_frag))); | 31 | auto blitPS = toneMapping_frag::getShader(); |
| 32 | 32 | ||
| 33 | auto blitVS = gpu::StandardShaderLib::getDrawViewportQuadTransformTexcoordVS(); | 33 | auto blitVS = gpu::StandardShaderLib::getDrawViewportQuadTransformTexcoordVS(); |
| 34 | auto blitProgram = gpu::ShaderPointer(gpu::Shader::createProgram(blitVS, blitPS)); | 34 | auto blitProgram = gpu::ShaderPointer(gpu::Shader::createProgram(blitVS, blitPS)); |