[Opengeoscience-developers] OpenGeoscience branch, fix_transparency, created. 98de04b24e734ad7821985e17c1dba894c60181a

Aashish Chaudhary aashish.chaudhary at kitware.com
Sat Jul 13 01:08:11 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OpenGeoscience".

The branch, fix_transparency has been created
        at  98de04b24e734ad7821985e17c1dba894c60181a (commit)

- Log -----------------------------------------------------------------
http://public.kitware.com/gitweb?p=OpenGeoscience/geoweb.git;a=commitdiff;h=98de04b24e734ad7821985e17c1dba894c60181a
commit 98de04b24e734ad7821985e17c1dba894c60181a
Author: Aashish Chaudhary <aashish.chaudhary at kitware.com>
Date:   Sat Jul 13 00:58:44 2013 -0400

    Fixed blending
    
    If using blend function GL_SRC_ALPHA and GL_ONE_MINUS_SRC_ALPHA
    we get color (RGBA) source factor (As,As,As,AS) and color dest
    factor ((1,1,1) – (As,As,As), 1 – As). Well the problem is that
    this results in resulting alpha for the final pixel < 1.0. Now
    we use white background for the body which then shows up through
    our GL renering. For example if src alpha is 0.6 then we will get
    0.6 * 0.6 + 0.4 * 1.0 = 0.36 + 0.4 = 0.76 as the final pixel alpha
    value.

 web/lib/vgl/blend.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------


hooks/post-receive
-- 
OpenGeoscience



More information about the Opengeoscience-developers mailing list