MCPcopy Create free account
hub / github.com/city-super/Octree-GS / process

Method process

SIBR_viewers/src/core/renderer/AddShadowRenderer.cpp:26–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 void AddShadowRenderer::process(
27 uint backgroundTextureID,
28 uint foregroundTextureID,
29 const Vector2f& textureSize,
30 const Camera& camera,
31
32 IRenderTarget& dst )
33 {
34 dst.bind();
35
36 glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, foregroundTextureID );
37 glActiveTexture(GL_TEXTURE1); glBindTexture(GL_TEXTURE_2D, backgroundTextureID );
38 glDisable(GL_DEPTH_TEST);
39 glDisable(GL_BLEND);
40 glDepthMask(GL_TRUE); // but write the current values
41 _shader.begin();
42 _paramInvProj.set(camera.invViewproj());
43 _paramImgSize.set(textureSize);
44 RenderUtility::renderScreenQuad();
45 _shader.end();
46
47 dst.unbind();
48 }
49
50} /*namespace sibr*/

Callers

nothing calls this directly

Calls 5

bindMethod · 0.45
beginMethod · 0.45
setMethod · 0.45
endMethod · 0.45
unbindMethod · 0.45

Tested by

no test coverage detected