@@ -27,20 +27,20 @@ void HybridAlgorithm::initialize(const std::string & transparencyShaderFilePath,
27
27
28
28
m_opaqueProgram = new glow::Program;
29
29
m_opaqueProgram->attach (vertexShader);
30
- m_opaqueProgram->attach (glowutils::createShaderFromFile (gl::GL_FRAGMENT_SHADER, transparencyShaderFilePath + " hybrid_opaque.frag" ));
30
+ m_opaqueProgram->attach (glow::Shader::fromFile (gl::GL_FRAGMENT_SHADER, transparencyShaderFilePath + " hybrid_opaque.frag" ));
31
31
if (geometryShader != nullptr ) m_opaqueProgram->attach (geometryShader);
32
32
33
33
m_depthKTabProgram = new glow::Program;
34
34
m_depthKTabProgram->attach (vertexShader);
35
- m_depthKTabProgram->attach (glowutils::createShaderFromFile (gl::GL_FRAGMENT_SHADER, transparencyShaderFilePath + " hybrid_depthktab.frag" ));
35
+ m_depthKTabProgram->attach (glow::Shader::fromFile (gl::GL_FRAGMENT_SHADER, transparencyShaderFilePath + " hybrid_depthktab.frag" ));
36
36
if (geometryShader != nullptr ) m_depthKTabProgram->attach (geometryShader);
37
37
38
38
m_visibilityKTabProgram = new glow::Program;
39
- m_visibilityKTabProgram->attach (glowutils::createShaderFromFile (gl::GL_COMPUTE_SHADER, transparencyShaderFilePath + " hybrid_visibilityktab.comp" ));
39
+ m_visibilityKTabProgram->attach (glow::Shader::fromFile (gl::GL_COMPUTE_SHADER, transparencyShaderFilePath + " hybrid_visibilityktab.comp" ));
40
40
41
41
m_colorProgram = new glow::Program;
42
42
m_colorProgram->attach (vertexShader);
43
- m_colorProgram->attach (glowutils::createShaderFromFile (gl::GL_FRAGMENT_SHADER, transparencyShaderFilePath + " hybrid_color.frag" ));
43
+ m_colorProgram->attach (glow::Shader::fromFile (gl::GL_FRAGMENT_SHADER, transparencyShaderFilePath + " hybrid_color.frag" ));
44
44
if (geometryShader != nullptr ) m_colorProgram->attach (geometryShader);
45
45
46
46
m_depthBuffer = new glow::RenderBufferObject;
@@ -62,7 +62,7 @@ void HybridAlgorithm::initialize(const std::string & transparencyShaderFilePath,
62
62
m_colorFbo->attachRenderBuffer (gl::GL_DEPTH_ATTACHMENT, m_depthBuffer.get ());
63
63
m_colorFbo->setDrawBuffers ({ gl::GL_COLOR_ATTACHMENT0, gl::GL_COLOR_ATTACHMENT1 });
64
64
65
- m_compositionQuad = new glowutils::ScreenAlignedQuad (glowutils::createShaderFromFile (gl::GL_FRAGMENT_SHADER, transparencyShaderFilePath + " hybrid_post.frag" ));
65
+ m_compositionQuad = new glowutils::ScreenAlignedQuad (glow::Shader::fromFile (gl::GL_FRAGMENT_SHADER, transparencyShaderFilePath + " hybrid_post.frag" ));
66
66
m_compositionFbo = new glow::FrameBufferObject;
67
67
m_compositionFbo->attachTexture2D (gl::GL_COLOR_ATTACHMENT0, m_colorBuffer.get ());
68
68
m_compositionFbo->setDrawBuffer (gl::GL_COLOR_ATTACHMENT0);
0 commit comments