mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 00:26:33 +02:00
trying to understand the bug with nvidia new driver
This commit is contained in:
parent
b1a015affd
commit
aae7349c40
3 changed files with 6 additions and 4 deletions
|
@ -29,7 +29,7 @@
|
|||
#include <GL/wglew.h>
|
||||
|
||||
// Uncomment this define and recompile to be able to avoid code path preventing to be able to run nsight graphics debug
|
||||
//#define HIFI_ENABLE_NSIGHT_DEBUG 1
|
||||
#define HIFI_ENABLE_NSIGHT_DEBUG 1
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -67,8 +67,10 @@ DeferredFragment unpackDeferredFragmentNoPosition(vec2 texcoord) {
|
|||
frag.scattering = 0.0;
|
||||
unpackModeMetallic(diffuseVal.w, frag.mode, frag.metallic);
|
||||
|
||||
//frag.emissive = specularVal.xyz;
|
||||
frag.obscurance = min(specularVal.w, frag.obscurance);
|
||||
|
||||
// frag.obscurance = min(specularVal.w, frag.obscurance);
|
||||
|
||||
frag.obscurance = specularVal.w;
|
||||
|
||||
|
||||
if (frag.mode == FRAG_MODE_SCATTERING) {
|
||||
|
|
|
@ -55,7 +55,7 @@ void DeferredFramebuffer::allocate() {
|
|||
|
||||
_deferredColorTexture = gpu::TexturePointer(gpu::Texture::createRenderBuffer(colorFormat, width, height, gpu::Texture::SINGLE_MIP, defaultSampler));
|
||||
_deferredNormalTexture = gpu::TexturePointer(gpu::Texture::createRenderBuffer(linearFormat, width, height, gpu::Texture::SINGLE_MIP, defaultSampler));
|
||||
_deferredSpecularTexture = gpu::TexturePointer(gpu::Texture::createRenderBuffer(colorFormat, width, height, gpu::Texture::SINGLE_MIP, defaultSampler));
|
||||
_deferredSpecularTexture = gpu::TexturePointer(gpu::Texture::createRenderBuffer(linearFormat, width, height, gpu::Texture::SINGLE_MIP, defaultSampler));
|
||||
|
||||
_deferredFramebuffer->setRenderBuffer(0, _deferredColorTexture);
|
||||
_deferredFramebuffer->setRenderBuffer(1, _deferredNormalTexture);
|
||||
|
|
Loading…
Reference in a new issue