Jump to content

RenderRenderer::setBlendFunc


photo

Recommended Posts

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
×
×
  • Create New...