UpdateTargetAttributes updates the attribute names of the specified morph targets in order.
(morphTargets []*Geometry)
| 177 | |
| 178 | // UpdateTargetAttributes updates the attribute names of the specified morph targets in order. |
| 179 | func (mg *MorphGeometry) UpdateTargetAttributes(morphTargets []*Geometry) { |
| 180 | |
| 181 | for i, mt := range morphTargets { |
| 182 | mt.SetAttributeName(gls.VertexPosition, "MorphPosition"+strconv.Itoa(i)) |
| 183 | mt.SetAttributeName(gls.VertexNormal, "MorphNormal"+strconv.Itoa(i)) |
| 184 | mt.SetAttributeName(gls.VertexTangent, "MorphTangent"+strconv.Itoa(i)) |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | // RenderSetup is called by the renderer before drawing the geometry. |
| 189 | func (mg *MorphGeometry) RenderSetup(gs *gls.GLS) { |
no test coverage detected