Don't send me E-mail!!!!!




------------------ 原始邮件 ------------------
发件人: "Dan Bagnell";<notifications@github.com>;
发送时间: 2014年3月26日(星期三) 上午9:35
收件人: "AnalyticalGraphicsInc/cesium"<cesium@noreply.github.com>; 
抄送: "次毅"<200954381@qq.com>; 
主题: Re: [cesium] Order Independent Transparency (#1412)




In Source/Scene/OIT.js:
 > +        functionSourceRgb : BlendFunction.ZERO, > +        functionDestinationRgb : BlendFunction.ONE_MINUS_SOURCE_ALPHA, > +        functionSourceAlpha : BlendFunction.ZERO, > +        functionDestinationAlpha : BlendFunction.ONE_MINUS_SOURCE_ALPHA > +    }; > + > +    function getTranslucentRenderState(context, translucentBlending, cache, renderState) { > +        var translucentState = cache[renderState.id]; > +        if (!defined(translucentState)) { > +            var depthMask = renderState.depthMask; > +            var blending = renderState.blending; > + > +            renderState.depthMask = false; > +            renderState.blending = translucentBlending; > + > +            translucentState = context.createRenderState(renderState);  
Right. Instead, I'm going to call context.createRenderState(renderState) and then set depthMask and blending.
 
—
Reply to this email directly or view it on GitHub.