[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Should GLfloat and GLclampf be typedefs for "unrestricted float"?
I point it out because once the color buffer extension becomes available, the clamping tests will need reworking. Currently WebGL clamps regardless. The reason for that is that in Desktop GL you have to specify clamps explicitely, and unless you release them, ranges are clamped. However in ES the clamping behavior is derived from the drawing target. So an implementation that observes the spec on Infinity, -Infinity and NaN, which is right next to the clamping settings, would have to explicitely observe the target and do the right thing on Desktops (on mobiles it's just pass trough).