mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-07 03:49:43 -05:00
Take back manual depth test for the two pass model rendering
This commit is contained in:
@@ -59,7 +59,9 @@ class FramebufferRenderer final : public RaycasterListener, public Deferredcaste
|
||||
public:
|
||||
virtual ~FramebufferRenderer() override = default;
|
||||
|
||||
// Functions to access and reuse some of the existing textures
|
||||
//============================//
|
||||
//===== Reuse textures =====//
|
||||
//============================//
|
||||
/**
|
||||
* Gives access to the currently NOT used pingPongTexture. This texture is available
|
||||
* for all RenderBins. However, it cannot be used at the same time as the Deferred
|
||||
@@ -100,6 +102,46 @@ public:
|
||||
*/
|
||||
GLuint additionalDepthTexture();
|
||||
|
||||
//=============================//
|
||||
//===== Access G-buffer =====//
|
||||
//=============================//
|
||||
// Functions to access the G-buffer textures
|
||||
/**
|
||||
* Gives access to the color texture of the G-buffer. NOTE: This texture is used for
|
||||
* the majority of rendering the scene and might be already in use. Use CAUTION when
|
||||
* using this function. The size of the texture is the resolution of the viewport.
|
||||
*
|
||||
* \return GLuint identifier of the color texture of the G-buffer
|
||||
*/
|
||||
GLuint gBufferColorTexture();
|
||||
|
||||
/**
|
||||
* Gives access to the position texture of the G-buffer. NOTE: This texture is used for
|
||||
* the majority of rendering the scene and might be already in use. Use CAUTION when
|
||||
* using this function. The size of the texture is the resolution of the viewport.
|
||||
*
|
||||
* \return GLuint identifier of the position texture of the G-buffer
|
||||
*/
|
||||
GLuint gBufferPositionTexture();
|
||||
|
||||
/**
|
||||
* Gives access to the normal texture of the G-buffer. NOTE: This texture is used for
|
||||
* the majority of rendering the scene and might be already in use. Use CAUTION when
|
||||
* using this function. The size of the texture is the resolution of the viewport.
|
||||
*
|
||||
* \return GLuint identifier of the normal texture of the G-buffer
|
||||
*/
|
||||
GLuint gBufferNormalTexture();
|
||||
|
||||
/**
|
||||
* Gives access to the depth texture of the G-buffer. NOTE: This texture is used for
|
||||
* the majority of rendering the scene and might be already in use. Use CAUTION when
|
||||
* using this function. The size of the texture is the resolution of the viewport.
|
||||
*
|
||||
* \return GLuint identifier of the depth texture of the G-buffer
|
||||
*/
|
||||
GLuint gBufferDepthTexture();
|
||||
|
||||
void initialize();
|
||||
void deinitialize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user