addAttributeToVBO adds the appropriate attribute to the provided vbo based on the glTF attribute name.
(vbo *gls.VBO, attribName string, byteOffset uint32)
| 620 | |
| 621 | // addAttributeToVBO adds the appropriate attribute to the provided vbo based on the glTF attribute name. |
| 622 | func (g *GLTF) addAttributeToVBO(vbo *gls.VBO, attribName string, byteOffset uint32) { |
| 623 | |
| 624 | aType, ok := AttributeName[attribName] |
| 625 | if !ok { |
| 626 | log.Warn(fmt.Sprintf("Attribute %v is not supported!", attribName)) |
| 627 | return |
| 628 | } |
| 629 | vbo.AddAttribOffset(aType, byteOffset) |
| 630 | } |
| 631 | |
| 632 | // validateAccessorAttribute validates the specified accessor for the given attribute name. |
| 633 | func (g *GLTF) validateAccessorAttribute(ac Accessor, attribName string) error { |
no test coverage detected