MCPcopy
hub / github.com/g3n/engine / Mesh

Struct Mesh

graphic/mesh.go:16–22  ·  view source on GitHub ↗

Mesh is a Graphic with uniforms for the model, view, projection, and normal matrices.

Source from the content-addressed store, hash-verified

14
15// Mesh is a Graphic with uniforms for the model, view, projection, and normal matrices.
16type 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected