v.chizhkov Posted April 16, 2015 Share Posted April 16, 2015 If we look at function RenderRenderer::setBlendFunc(int pass,Material *material) and for the pass RENDER_PASS_LIGHT_... variables "src" or "dst" are set for BLEND_NONE, they are changing their value for BLEND_ONE and BLEND_ONE by calling function: state->setBlendFunc(BLEND_ONE,BLEND_ONE); As the result, blending is always switched on. In my opinion, it is a mistake. Perhaps, blending should be switched off (as it is done for RENDER_PASS_AMBIENT) by calling function: state->setBlendFunc(BLEND_NONE,BLEND_NONE); ? Link to comment
unclebob Posted April 19, 2015 Share Posted April 19, 2015 Hi Vitaly, I think blending should be switched on, because we're accumulating light information to a texture so we need to use additive blending. Link to comment
Recommended Posts