Closed kusma closed 2 years ago
Yeah that "as usual" is referring only to the XY components. ZW are treated like other attributes. We definitely need to clarify the spec, so thanks for pointing this out.
Do you know if the existing CTS is testing this? I know you've made other comments and changes on line related CTS so perhaps you know if this is covered.
My understanding is that the CTS only tests the preferred interpolation, and AFAICT it tests it consistent with the wording only applying to the X and Y components.
So, "covered" in this regard, yes. But also broken ;)
The OpenGL 4.6 Core Profile specification, section 14.5.2.2 "Wide Lines" has the following wording (emphasis is mine):
It's a bit unclear what that last bit means exactly. What is "as usual" in this case?
I think it's pretty obvious what is meant with the X and Y components, which are well-defined. But the Z and W components aren't really well-defined for wide lines. The only two interpretations that kinda makes sense to me would be these two:
Given that the sentence that immediately follows refers to the Basic Line Segment Rasterization explicitly, I somehow doubt that 1 is the right answer. It also seems unfortunate if implementations are expected to set up two different set of interpolation functions for the same primitive, and it seems beneficial to applications to be able to expect a single way of expanding line attributes over a single primitive.
So could we get a clarification here?