-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attribute names must have an underscore prefix #611
Comments
In my opinion a semantic formally defined by an extension should not be considered an application-specific semantic — if the validator gets support for |
It's not a warning, but an error. I think a warning could be ignored for now, but an error might, in the worst case, cause viewers to just bail out saying "I'm not even gonna try and render an invalid asset" (for a good reason - who knows which crashes that might cause...) Do you know, from the tip of your head, any extensions that already define attribute names without the underscore? (Otherwise, I might have a look at the existing extensions, and also on how the validator handles this - i.e. whether the validator actually allows for this case if the extension is known by the validator). Beyond that, it may boil down to the exact meaning of "application-specific", but from a purely technical viewpoint, defining something that causes a validation error does not seem to be a good idea... |
Historically we've used the phrase "application-specific" to separate the purpose of Extras from the purpose of Extensions – I think that also applies here. After all, why require userland attributes to have a The two examples I can think of are Neither is the same as our case, so perhaps this is a question for Khronos. |
The seemingly obvious (but admittedly, rather shallow) answer could be that (originally) there should have been the option to add attributes to the core spec, without the risk of name clashes with existing extension attributes. More abstractly: The I'm a bit on the fence here. On the one hand, I'd say "Let's just add that |
We're now using underscore-prefixed attributes in the latest version of |
The Vertex Attribute section says
The glTF specification says
The following is a (trivial, complete, embedded, standalone) glTF asset with a quad that defines feature ID attributes
The validator reports one error:
Adding the
_
underscore prefix to the attribute name fixes this.The text was updated successfully, but these errors were encountered: