Mesh is a Graphic with uniforms for the model, view, projection, and normal matrices.
| 14 | |
| 15 | // Mesh is a Graphic with uniforms for the model, view, projection, and normal matrices. |
| 16 | type Mesh struct { |
| 17 | Graphic // Embedded graphic |
| 18 | uniMm gls.Uniform // Model matrix uniform location cache |
| 19 | uniMVm gls.Uniform // Model view matrix uniform location cache |
| 20 | uniMVPm gls.Uniform // Model view projection matrix uniform cache |
| 21 | uniNm gls.Uniform // Normal matrix uniform cache |
| 22 | } |
| 23 | |
| 24 | // NewMesh creates and returns a pointer to a mesh with the specified geometry and material. |
| 25 | // If the mesh has multi materials, the material specified here must be nil and the |
nothing calls this directly
no outgoing calls
no test coverage detected