KhronosGroup / KhronosGroup/OpenGL-Registry

centroid details seem contradictory

Open
#627 4 comments 0 reactions 1 assignee Claimed by @gnl21 View on GitHub
Dominant language
C
Stars
854
Forks
302
PR merge metrics
No merged PRs in 30d

Description

In the [GLSL ES 3.2 spec](https://registry.khronos.org/OpenGL/specs/es/3.2/GLSL_ES_Specification_3.20.pdf) in relation to `gl_FragCoord`

In section 4.5 it says

> If a fragment shader input is qualified with **centroid**, a single value may be assigned to that variable for all samples in the pixel, **but that value must be interpolated at a location that lies in both the pixel and in the primitive being rendered**, including any of the pixel’s samples covered by the primitive.

Where as in section 7.1.5 it says

> The use of centroid does not further restrict this value to be inside the current primitive.

It seems like section 4.5 says in centroid mode "that value must be ... in the primitive being rendered" where as 7.1.5 says it doesn't.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.