MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / postDraw_

Method postDraw_

source/MRViewer/MRShadowsGL.cpp:102–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void ShadowsGL::postDraw_()
103{
104 if ( sceneSize_.x == 0 || sceneSize_.y == 0 )
105 return;
106
107#ifndef __EMSCRIPTEN__
108 GL_EXEC( glDisable( GL_MULTISAMPLE ) );
109#endif
110 sceneFramebuffer_.copyTextureBindDef();
111 drawLowSize_(); // draw scene texture in low size for further convolution
112 convolveX_(); // draw shadow with x convolution to other texture (low res)
113 convolveY_(); // draw shadow with y convolution to other texture (low res)
114 getViewerInstance().bindSceneTexture( true ); // bind default scene texture
115 drawTexture_( false, false ); // draw shadow in real size to main framebuffer
116 drawTexture_( true, false ); // draw scene in real size to main framebuffer
117
118#ifndef __EMSCRIPTEN__
119 GL_EXEC( glEnable( GL_MULTISAMPLE ) );
120#endif
121}
122
123void ShadowsGL::drawLowSize_()
124{

Callers

nothing calls this directly

Calls 2

copyTextureBindDefMethod · 0.80
bindSceneTextureMethod · 0.80

Tested by

no test coverage detected