[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Centroid sampling makes conformance tests fail?




On 21/06/2012 06:17, Florian Bösch wrote:
...
So regarding the centroid sampling, I don't know how HLSL specifies this exactly, but in GLSL (for desktop OpenGL) there are sampling specifiers to varyings. They usually default to centroid sampling, but can be switched over to nearest and other modes.
You've got that backwards. A variable not qualified with "centroid" can be interpolated with the flexibility Nicolas described from the OpenGL ES 2.0 spec. You must specify "centroid" in the FS to get centroid behavior.

Regards

    -Mark