Documentation
¶
Index ¶
- type Face
- func (face *Face) AddLightmap(lightmap *texture.Lightmap)
- func (face *Face) AddMaterial(mat material.IMaterial)
- func (face *Face) IsLightmapped() bool
- func (face *Face) Length() int32
- func (face *Face) Lightmap() *texture.Lightmap
- func (face *Face) Material() material.IMaterial
- func (face *Face) Offset() int32
- type IMesh
- type Mesh
- func (mesh *Mesh) AddLightmapCoordinate(uv ...float32)
- func (mesh *Mesh) AddNormal(normal ...float32)
- func (mesh *Mesh) AddTangent(tangent ...float32)
- func (mesh *Mesh) AddUV(uv ...float32)
- func (mesh *Mesh) AddVertex(vertex ...float32)
- func (mesh *Mesh) GenerateTangents()
- func (mesh *Mesh) Lightmap() texture.ITexture
- func (mesh *Mesh) LightmapCoordinates() []float32
- func (mesh *Mesh) Material() material.IMaterial
- func (mesh *Mesh) Normals() []float32
- func (mesh *Mesh) SetLightmap(mat texture.ITexture)
- func (mesh *Mesh) SetMaterial(mat material.IMaterial)
- func (mesh *Mesh) Tangents() []float32
- func (mesh *Mesh) UVs() []float32
- func (mesh *Mesh) Vertices() []float32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Face ¶
type Face struct {
// contains filtered or unexported fields
}
Face
type IMesh ¶
type IMesh interface {
// AddVertex
AddVertex(...float32)
// AddNormal
AddNormal(...float32)
// AddUV
AddUV(...float32)
// AddLightmapCoordinate
AddLightmapCoordinate(...float32)
// GenerateTangents
GenerateTangents()
// Vertices
Vertices() []float32
// Normals
Normals() []float32
// UVs
UVs() []float32
// Tangents
Tangents() []float32
// LightmapCoordinates
LightmapCoordinates() []float32
// Material
Material() material.IMaterial
// SetMaterial
SetMaterial(material.IMaterial)
// Lightmap
Lightmap() texture.ITexture
// SetLightmap
SetLightmap(texture.ITexture)
}
IMesh Generic Mesh interface Most renderable objects should implement this, but there are probably many custom cases that may not
type Mesh ¶
type Mesh struct {
// contains filtered or unexported fields
}
Mesh
func (*Mesh) AddLightmapCoordinate ¶
AddLightmapCoordinate
func (*Mesh) LightmapCoordinates ¶
LightmapCoordinates
Click to show internal directories.
Click to hide internal directories.