Commit 186c9834 authored by Michele Bosi's avatar Michele Bosi

Vivid: outline width bug fixed

parent 63fc028e
......@@ -412,6 +412,7 @@ void VividRenderer::renderStencil(Camera* camera) {
//-------------------------------------------------------------------------------------------------
void VividRenderer::renderFrontToBackPeeling(const RenderQueue* render_queue, Camera* camera, real frame_clock)
{
// mShaderOutline2D->gocUniform("vl_Vivid.outline.width")->setUniformI( 5 );
mShaderOutline2D->gocUniform("vl_Vivid.alpha")->setUniform( mVividRendering->alpha() );
mShaderOutline3D->gocUniform("vl_Vivid.outline.eyeOffset")->setUniform( mVividRendering->outline3DEyeOffset() );
......@@ -720,9 +721,10 @@ void VividRenderer::render2DOutlines(const RenderQueue* render_queue, Camera* ca
glEnable( GL_BLEND );
mShaderOutline2D->useProgram();
bindTexture( mShaderOutline2D.get(), GL_TEXTURE_RECTANGLE, "vl_Vivid.stencil.texture", mStencilTexture->handle(), VividRendering::TextureUnit0 );
mShaderOutline2D->applyUniformSet( shader->getUniformSet() );
mShaderOutline2D->applyUniformSet(); VL_CHECK_OGL();
mShaderOutline2D->applyUniformSet( shader->getUniformSet() );
VL_CHECK( shader->getUniform( "vl_Vivid.outline.color" ) );
VL_CHECK( shader->getUniform( "vl_Vivid.outline.width" ) );
drawFullScreenQuad();
VL_CHECK_OGL()
......
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