| 100 | } |
| 101 | |
| 102 | void 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 | |
| 123 | void ShadowsGL::drawLowSize_() |
| 124 | { |
nothing calls this directly
no test coverage detected