Commit 955cc3ab authored by Robin Eschbach's avatar Robin Eschbach
Browse files

[FIX] transparency on VR

parent 94deb44d
......@@ -45,6 +45,8 @@ WRTTCamera::WRTTCamera( uint32_t width,
setupCamera();
setupRTT();
wge::enableTransparency( m_node );
addChild( m_node );
}
......
......@@ -29,6 +29,7 @@
#include "core/graphicsEngine/WGECamera.h"
#include "core/graphicsEngine/WGEGroupNode.h"
#include "core/graphicsEngine/WGEUtils.h"
#include "core/graphicsEngine/offscreen/WGEOffscreenRenderNode.h"
/**
......
......@@ -68,12 +68,12 @@ void main()
vec4 finalColor = getColor( pixelCoord );
float depth = getDepth( pixelCoord );
if( finalColor.a == 0.0 )
{
finalColor = vec4( 1.0, 1.0, 1.0, 1.0 );
}
// if( finalColor.a == 0.0 )
// {
// finalColor = vec4( 1.0, 1.0, 1.0, 1.0 );
// }
gl_FragColor = finalColor;
gl_FragColor = mix( vec4( 1.0 ), finalColor, finalColor.a );
gl_FragDepth = depth;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment