[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Proposal for WEBGL_render_to_float
You shan't pour out the baby with the bath. Just because blendColor might be clamped, doesn't mean that blending doesn't work (or would be clamped).
For instance, if you enable blending, and set it to addtive (ONE, ONE), you have an accumulator. If you render to that render target with a floating point texture, this will merrily add unclamped. blendColor doesn't feature in this equation at all. The two most popular blending modes (addtivie and alpha blending) don't consider blendColor. And even if you have an equation configured that does use the blendColor, the result will not be clamped, even though the users specification of the blendColor might be.