Documentation ¶
Index ¶
- func CubeUVToUVW(side CubeSide, uv dprec.Vec2) dprec.Vec3
- func UVWToEquirectangularUV(uvw dprec.Vec3) dprec.Vec2
- type AmbientLight
- type Animation
- func (a *Animation) AddBinding(binding *AnimationBinding)
- func (a *Animation) Bindings() []*AnimationBinding
- func (a *Animation) EndTime() float64
- func (a *Animation) Name() string
- func (a *Animation) SetEndTime(value float64)
- func (a *Animation) SetName(value string)
- func (a *Animation) SetStartTime(value float64)
- func (a *Animation) StartTime() float64
- type AnimationBinding
- func (a *AnimationBinding) AddRotationKeyframe(keyframe RotationKeyframe)
- func (a *AnimationBinding) AddScaleKeyframe(keyframe ScaleKeyframe)
- func (a *AnimationBinding) AddTranslationKeyframe(keyframe TranslationKeyframe)
- func (a *AnimationBinding) NodeName() string
- func (a *AnimationBinding) RotationKeyframes() []RotationKeyframe
- func (a *AnimationBinding) ScaleKeyframes() []ScaleKeyframe
- func (a *AnimationBinding) SetNodeName(value string)
- func (a *AnimationBinding) TranslationKeyframes() []TranslationKeyframe
- type Armature
- type BaseColorEmitter
- type BaseConeEmitter
- type BaseDistanceEmitter
- type BaseFilterable
- type BaseMipmappable
- type BaseShadowCaster
- type BaseTextureReferrer
- type BaseWrappable
- type Body
- type BodyDefinition
- func (d *BodyDefinition) AddCollisionBox(value *CollisionBox)
- func (d *BodyDefinition) AddCollisionMesh(value *CollisionMesh)
- func (d *BodyDefinition) AddCollisionMeshes(collisionMeshes []*CollisionMesh)
- func (d *BodyDefinition) AddCollisionSphere(value *CollisionSphere)
- func (d *BodyDefinition) AngularDragFactor() float64
- func (d *BodyDefinition) CollisionBoxes() []*CollisionBox
- func (d *BodyDefinition) CollisionMeshes() []*CollisionMesh
- func (d *BodyDefinition) CollisionSpheres() []*CollisionSphere
- func (d *BodyDefinition) DragFactor() float64
- func (d *BodyDefinition) Mass() float64
- func (d *BodyDefinition) Material() *BodyMaterial
- func (d *BodyDefinition) MomentOfInertia() dprec.Mat3
- func (d *BodyDefinition) SetAngularDragFactor(value float64)
- func (d *BodyDefinition) SetCollisionMeshes(collisionMeshes []*CollisionMesh)
- func (d *BodyDefinition) SetDragFactor(value float64)
- func (d *BodyDefinition) SetMass(value float64)
- func (d *BodyDefinition) SetMomentOfInertia(value dprec.Mat3)
- type BodyMaterial
- type CollisionBox
- func (b *CollisionBox) Height() float64
- func (b *CollisionBox) Length() float64
- func (b *CollisionBox) Rotation() dprec.Quat
- func (b *CollisionBox) SetHeight(value float64)
- func (b *CollisionBox) SetLength(value float64)
- func (b *CollisionBox) SetRotation(value dprec.Quat)
- func (b *CollisionBox) SetTranslation(value dprec.Vec3)
- func (b *CollisionBox) SetWidth(value float64)
- func (b *CollisionBox) Translation() dprec.Vec3
- func (b *CollisionBox) Width() float64
- type CollisionMesh
- func (m *CollisionMesh) AddTriangle(value CollisionTriangle)
- func (m *CollisionMesh) Rotation() dprec.Quat
- func (m *CollisionMesh) SetRotation(value dprec.Quat)
- func (m *CollisionMesh) SetTranslation(value dprec.Vec3)
- func (m *CollisionMesh) SetTriangles(triangles []CollisionTriangle)
- func (m *CollisionMesh) Translation() dprec.Vec3
- func (m *CollisionMesh) Triangles() []CollisionTriangle
- type CollisionSphere
- type CollisionTriangle
- type Color
- type ColorEmitter
- type Comparison
- type ConeEmitter
- type Converter
- type CubeImage
- func (i *CubeImage) MapTexels(fn func(texel Color) Color) *CubeImage
- func (i *CubeImage) Scale(newSize int) *CubeImage
- func (i *CubeImage) SetSide(side CubeSide, image *Image)
- func (i *CubeImage) Side(side CubeSide) *Image
- func (i CubeImage) TexelUVW(uvw dprec.Vec3) Color
- func (i CubeImage) TexelUVWBilinear(uvw dprec.Vec3) Color
- type CubeSide
- type CullMode
- type DirectionalLight
- type DistanceEmitter
- type FaceOrientation
- type FilterMode
- type Filterable
- type Fragment
- func (f *Fragment) IndexCount() int
- func (f *Fragment) IndexOffset() int
- func (f *Fragment) Metadata() Metadata
- func (f *Fragment) Name() string
- func (f *Fragment) SetIndexCount(count int)
- func (f *Fragment) SetIndexOffset(offset int)
- func (f *Fragment) SetMetadata(metadata Metadata)
- func (f *Fragment) SetName(name string)
- func (f *Fragment) SetTopology(topology Topology)
- func (f *Fragment) Topology() Topology
- type Geometry
- func (g *Geometry) AddFragment(fragment *Fragment)
- func (g *Geometry) AddIndex(index int)
- func (g *Geometry) AddVertex(vertex Vertex)
- func (g *Geometry) Format() VertexFormat
- func (g *Geometry) Fragments() []*Fragment
- func (g *Geometry) Index(at int) int
- func (g *Geometry) IndexOffset() int
- func (g *Geometry) Indices() []int
- func (g *Geometry) MaxDistance() float64
- func (g *Geometry) Metadata() Metadata
- func (g *Geometry) MinDistance() float64
- func (g *Geometry) Name() string
- func (g *Geometry) SetFormat(format VertexFormat)
- func (g *Geometry) SetMaxDistance(distance float64)
- func (g *Geometry) SetMetadata(metadata Metadata)
- func (g *Geometry) SetMinDistance(distance float64)
- func (g *Geometry) SetName(name string)
- func (g *Geometry) Vertex(at int) Vertex
- func (g *Geometry) VertexOffset() int
- func (g *Geometry) Vertices() []Vertex
- type Image
- func (i *Image) CopyFrom(src *Image)
- func (i *Image) DataRGBA16F() []byte
- func (i *Image) DataRGBA32F() []byte
- func (i *Image) DataRGBA8() []byte
- func (i *Image) Height() int
- func (i *Image) IsEqualSize(other *Image) bool
- func (i *Image) IsSquare() bool
- func (i *Image) Name() string
- func (i *Image) Scale(newWidth, newHeight int) *Image
- func (i *Image) SetName(name string)
- func (i *Image) SetTexel(x, y int, texel Color)
- func (i *Image) Texel(x, y int) Color
- func (i *Image) TexelUV(uv dprec.Vec2) Color
- func (i *Image) TexelUVBilinear(uv dprec.Vec2) Color
- func (i *Image) Width() int
- type Joint
- type Keyframe
- type Material
- func (m *Material) AddForwardPass(pass *MaterialPass)
- func (m *Material) AddGeometryPass(pass *MaterialPass)
- func (m *Material) AddPostprocessPass(pass *MaterialPass)
- func (m *Material) AddShadowPass(pass *MaterialPass)
- func (m *Material) AddSkyPass(pass *MaterialPass)
- func (m *Material) Clear()
- func (m *Material) ForwardPasses() []*MaterialPass
- func (m *Material) GeometryPasses() []*MaterialPass
- func (m *Material) Metadata() Metadata
- func (m *Material) Name() string
- func (m *Material) PostprocessPasses() []*MaterialPass
- func (m *Material) Property(name string) any
- func (m *Material) Sampler(name string) *Sampler
- func (m *Material) SetMetadata(metadata Metadata)
- func (m *Material) SetName(name string)
- func (m *Material) SetProperty(name string, value any)
- func (m *Material) SetSampler(name string, sampler *Sampler)
- func (m *Material) ShadowPasses() []*MaterialPass
- func (m *Material) SkyPasses() []*MaterialPass
- type MaterialPass
- func (m *MaterialPass) Blending() bool
- func (m *MaterialPass) Culling() CullMode
- func (m *MaterialPass) DepthComparison() Comparison
- func (m *MaterialPass) DepthTest() bool
- func (m *MaterialPass) DepthWrite() bool
- func (m *MaterialPass) FrontFace() FaceOrientation
- func (m *MaterialPass) Layer() int
- func (m *MaterialPass) SetBlending(blending bool)
- func (m *MaterialPass) SetCulling(culling CullMode)
- func (m *MaterialPass) SetDepthComparison(depthComparison Comparison)
- func (m *MaterialPass) SetDepthTest(depthTest bool)
- func (m *MaterialPass) SetDepthWrite(depthWrite bool)
- func (m *MaterialPass) SetFrontFace(frontFace FaceOrientation)
- func (m *MaterialPass) SetLayer(layer int)
- func (m *MaterialPass) SetShader(shader *Shader)
- func (m *MaterialPass) Shader() *Shader
- type Mesh
- type MeshDefinition
- func (m *MeshDefinition) BindMaterial(name string, material *Material)
- func (m *MeshDefinition) Geometry() *Geometry
- func (m *MeshDefinition) Materials() []*Material
- func (m *MeshDefinition) Name() string
- func (m *MeshDefinition) SetGeometry(geometry *Geometry)
- func (m *MeshDefinition) SetName(name string)
- type Metadata
- func (m Metadata) FloatProperty(key string) (float64, bool)
- func (m Metadata) HasCollision() bool
- func (m Metadata) HasMaxDistance() (float64, bool)
- func (m Metadata) HasMinDistance() (float64, bool)
- func (m Metadata) HasSkipCollision() bool
- func (m Metadata) IsInvisible() bool
- func (m Metadata) IsSet(key string) bool
- type MipmapLayer
- type Mipmappable
- type Model
- func (s *Model) AddAnimation(animation *Animation)
- func (s *Model) AddNode(node *Node)
- func (s *Model) Animations() []*Animation
- func (s *Model) FlattenNodes() []*Node
- func (s *Model) Name() string
- func (s *Model) Nodes() []*Node
- func (s *Model) RemoveNode(node *Node)
- func (s *Model) SetName(name string)
- type Node
- func (n *Node) AddNode(node *Node)
- func (n *Node) Name() string
- func (n *Node) Nodes() []*Node
- func (n *Node) Parent() *Node
- func (n *Node) RemoveNode(node *Node)
- func (n *Node) Rotation() dprec.Quat
- func (n *Node) Scale() dprec.Vec3
- func (n *Node) SetMetadata(metadata Metadata)
- func (n *Node) SetName(name string)
- func (n *Node) SetParent(parent *Node)
- func (n *Node) SetRotation(rotation dprec.Quat)
- func (n *Node) SetScale(scale dprec.Vec3)
- func (n *Node) SetSource(source any)
- func (n *Node) SetTarget(target any)
- func (n *Node) SetTranslation(translation dprec.Vec3)
- func (n *Node) Source() any
- func (n *Node) Target() any
- func (n *Node) Translation() dprec.Vec3
- type PointLight
- type RotationKeyframe
- type Sampler
- type ScaleKeyframe
- type Shader
- type ShaderType
- type ShadowCaster
- type Sky
- type SpotLight
- type Texture
- func (t *Texture) Format() TextureFormat
- func (t *Texture) GenerateMipmaps() bool
- func (t *Texture) Kind() TextureKind
- func (t *Texture) Linear() bool
- func (t *Texture) Name() string
- func (t *Texture) SetGenerateMipmaps(generateMipmaps bool)
- func (t *Texture) SetLayerImage(mipmap, index int, image *Image)
- func (t *Texture) SetLinear(isLinear bool)
- func (t *Texture) SetName(name string)
- type TextureFormat
- type TextureKind
- type TextureLayer
- type TextureReferrer
- type Topology
- type TranslationKeyframe
- type Vertex
- type VertexFormat
- type WrapMode
- type Wrappable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AmbientLight ¶
type AmbientLight struct { BaseShadowCaster // contains filtered or unexported fields }
func NewAmbientLight ¶
func NewAmbientLight() *AmbientLight
func (*AmbientLight) ReflectionTexture ¶
func (l *AmbientLight) ReflectionTexture() *Texture
func (*AmbientLight) RefractionTexture ¶
func (l *AmbientLight) RefractionTexture() *Texture
func (*AmbientLight) SetReflectionTexture ¶
func (l *AmbientLight) SetReflectionTexture(texture *Texture)
func (*AmbientLight) SetRefractionTexture ¶
func (l *AmbientLight) SetRefractionTexture(texture *Texture)
type Animation ¶
type Animation struct {
// contains filtered or unexported fields
}
func (*Animation) AddBinding ¶
func (a *Animation) AddBinding(binding *AnimationBinding)
func (*Animation) Bindings ¶
func (a *Animation) Bindings() []*AnimationBinding
func (*Animation) SetEndTime ¶
func (*Animation) SetStartTime ¶
type AnimationBinding ¶
type AnimationBinding struct {
// contains filtered or unexported fields
}
func (*AnimationBinding) AddRotationKeyframe ¶
func (a *AnimationBinding) AddRotationKeyframe(keyframe RotationKeyframe)
func (*AnimationBinding) AddScaleKeyframe ¶
func (a *AnimationBinding) AddScaleKeyframe(keyframe ScaleKeyframe)
func (*AnimationBinding) AddTranslationKeyframe ¶
func (a *AnimationBinding) AddTranslationKeyframe(keyframe TranslationKeyframe)
func (*AnimationBinding) NodeName ¶
func (a *AnimationBinding) NodeName() string
func (*AnimationBinding) RotationKeyframes ¶
func (a *AnimationBinding) RotationKeyframes() []RotationKeyframe
func (*AnimationBinding) ScaleKeyframes ¶
func (a *AnimationBinding) ScaleKeyframes() []ScaleKeyframe
func (*AnimationBinding) SetNodeName ¶
func (a *AnimationBinding) SetNodeName(value string)
func (*AnimationBinding) TranslationKeyframes ¶
func (a *AnimationBinding) TranslationKeyframes() []TranslationKeyframe
type Armature ¶
type Armature struct {
// contains filtered or unexported fields
}
func NewArmature ¶
func NewArmature() *Armature
type BaseColorEmitter ¶
type BaseColorEmitter struct {
// contains filtered or unexported fields
}
func (*BaseColorEmitter) EmitColor ¶
func (b *BaseColorEmitter) EmitColor() dprec.Vec3
func (*BaseColorEmitter) SetEmitColor ¶
func (b *BaseColorEmitter) SetEmitColor(color dprec.Vec3)
type BaseConeEmitter ¶
type BaseConeEmitter struct {
// contains filtered or unexported fields
}
func (*BaseConeEmitter) EmitAngleInner ¶
func (b *BaseConeEmitter) EmitAngleInner() dprec.Angle
func (*BaseConeEmitter) EmitAngleOuter ¶
func (b *BaseConeEmitter) EmitAngleOuter() dprec.Angle
func (*BaseConeEmitter) SetEmitAngleInner ¶
func (b *BaseConeEmitter) SetEmitAngleInner(angle dprec.Angle)
func (*BaseConeEmitter) SetEmitAngleOuter ¶
func (b *BaseConeEmitter) SetEmitAngleOuter(angle dprec.Angle)
type BaseDistanceEmitter ¶
type BaseDistanceEmitter struct {
// contains filtered or unexported fields
}
func (*BaseDistanceEmitter) EmitDistance ¶
func (b *BaseDistanceEmitter) EmitDistance() float64
func (*BaseDistanceEmitter) SetEmitDistance ¶
func (b *BaseDistanceEmitter) SetEmitDistance(distance float64)
type BaseFilterable ¶
type BaseFilterable struct {
// contains filtered or unexported fields
}
func (*BaseFilterable) FilterMode ¶
func (b *BaseFilterable) FilterMode() FilterMode
func (*BaseFilterable) SetFilterMode ¶
func (b *BaseFilterable) SetFilterMode(mode FilterMode)
type BaseMipmappable ¶
type BaseMipmappable struct {
// contains filtered or unexported fields
}
func (*BaseMipmappable) Mipmapping ¶
func (b *BaseMipmappable) Mipmapping() bool
func (*BaseMipmappable) SetMipmapping ¶
func (b *BaseMipmappable) SetMipmapping(mipmapping bool)
type BaseShadowCaster ¶
type BaseShadowCaster struct {
// contains filtered or unexported fields
}
func (*BaseShadowCaster) CastShadow ¶
func (b *BaseShadowCaster) CastShadow() bool
func (*BaseShadowCaster) SetCastShadow ¶
func (b *BaseShadowCaster) SetCastShadow(castShadow bool)
type BaseTextureReferrer ¶
type BaseTextureReferrer struct {
// contains filtered or unexported fields
}
func (*BaseTextureReferrer) SetTexture ¶
func (b *BaseTextureReferrer) SetTexture(texture *Texture)
func (*BaseTextureReferrer) Texture ¶
func (b *BaseTextureReferrer) Texture() *Texture
type BaseWrappable ¶
type BaseWrappable struct {
// contains filtered or unexported fields
}
func (*BaseWrappable) SetWrapMode ¶
func (b *BaseWrappable) SetWrapMode(mode WrapMode)
func (*BaseWrappable) WrapMode ¶
func (b *BaseWrappable) WrapMode() WrapMode
type Body ¶
type Body struct {
// contains filtered or unexported fields
}
func NewBody ¶
func NewBody(definition *BodyDefinition) *Body
func (*Body) Definition ¶
func (b *Body) Definition() *BodyDefinition
type BodyDefinition ¶
type BodyDefinition struct {
// contains filtered or unexported fields
}
func NewBodyDefinition ¶
func NewBodyDefinition(material *BodyMaterial) *BodyDefinition
func (*BodyDefinition) AddCollisionBox ¶
func (d *BodyDefinition) AddCollisionBox(value *CollisionBox)
func (*BodyDefinition) AddCollisionMesh ¶
func (d *BodyDefinition) AddCollisionMesh(value *CollisionMesh)
func (*BodyDefinition) AddCollisionMeshes ¶
func (d *BodyDefinition) AddCollisionMeshes(collisionMeshes []*CollisionMesh)
func (*BodyDefinition) AddCollisionSphere ¶
func (d *BodyDefinition) AddCollisionSphere(value *CollisionSphere)
func (*BodyDefinition) AngularDragFactor ¶
func (d *BodyDefinition) AngularDragFactor() float64
func (*BodyDefinition) CollisionBoxes ¶
func (d *BodyDefinition) CollisionBoxes() []*CollisionBox
func (*BodyDefinition) CollisionMeshes ¶
func (d *BodyDefinition) CollisionMeshes() []*CollisionMesh
func (*BodyDefinition) CollisionSpheres ¶
func (d *BodyDefinition) CollisionSpheres() []*CollisionSphere
func (*BodyDefinition) DragFactor ¶
func (d *BodyDefinition) DragFactor() float64
func (*BodyDefinition) Mass ¶
func (d *BodyDefinition) Mass() float64
func (*BodyDefinition) Material ¶
func (d *BodyDefinition) Material() *BodyMaterial
func (*BodyDefinition) MomentOfInertia ¶
func (d *BodyDefinition) MomentOfInertia() dprec.Mat3
func (*BodyDefinition) SetAngularDragFactor ¶
func (d *BodyDefinition) SetAngularDragFactor(value float64)
func (*BodyDefinition) SetCollisionMeshes ¶
func (d *BodyDefinition) SetCollisionMeshes(collisionMeshes []*CollisionMesh)
func (*BodyDefinition) SetDragFactor ¶
func (d *BodyDefinition) SetDragFactor(value float64)
func (*BodyDefinition) SetMass ¶
func (d *BodyDefinition) SetMass(value float64)
func (*BodyDefinition) SetMomentOfInertia ¶
func (d *BodyDefinition) SetMomentOfInertia(value dprec.Mat3)
type BodyMaterial ¶
type BodyMaterial struct {
// contains filtered or unexported fields
}
func NewBodyMaterial ¶
func NewBodyMaterial() *BodyMaterial
func (*BodyMaterial) FrictionCoefficient ¶
func (m *BodyMaterial) FrictionCoefficient() float64
func (*BodyMaterial) RestitutionCoefficient ¶
func (m *BodyMaterial) RestitutionCoefficient() float64
func (*BodyMaterial) SetFrictionCoefficient ¶
func (m *BodyMaterial) SetFrictionCoefficient(value float64)
func (*BodyMaterial) SetRestitutionCoefficient ¶
func (m *BodyMaterial) SetRestitutionCoefficient(value float64)
type CollisionBox ¶
type CollisionBox struct {
// contains filtered or unexported fields
}
func NewCollisionBox ¶
func NewCollisionBox() *CollisionBox
func (*CollisionBox) Height ¶
func (b *CollisionBox) Height() float64
func (*CollisionBox) Length ¶
func (b *CollisionBox) Length() float64
func (*CollisionBox) Rotation ¶
func (b *CollisionBox) Rotation() dprec.Quat
func (*CollisionBox) SetHeight ¶
func (b *CollisionBox) SetHeight(value float64)
func (*CollisionBox) SetLength ¶
func (b *CollisionBox) SetLength(value float64)
func (*CollisionBox) SetRotation ¶
func (b *CollisionBox) SetRotation(value dprec.Quat)
func (*CollisionBox) SetTranslation ¶
func (b *CollisionBox) SetTranslation(value dprec.Vec3)
func (*CollisionBox) SetWidth ¶
func (b *CollisionBox) SetWidth(value float64)
func (*CollisionBox) Translation ¶
func (b *CollisionBox) Translation() dprec.Vec3
func (*CollisionBox) Width ¶
func (b *CollisionBox) Width() float64
type CollisionMesh ¶
type CollisionMesh struct {
// contains filtered or unexported fields
}
func NewCollisionMesh ¶
func NewCollisionMesh() *CollisionMesh
func (*CollisionMesh) AddTriangle ¶
func (m *CollisionMesh) AddTriangle(value CollisionTriangle)
func (*CollisionMesh) Rotation ¶
func (m *CollisionMesh) Rotation() dprec.Quat
func (*CollisionMesh) SetRotation ¶
func (m *CollisionMesh) SetRotation(value dprec.Quat)
func (*CollisionMesh) SetTranslation ¶
func (m *CollisionMesh) SetTranslation(value dprec.Vec3)
func (*CollisionMesh) SetTriangles ¶
func (m *CollisionMesh) SetTriangles(triangles []CollisionTriangle)
func (*CollisionMesh) Translation ¶
func (m *CollisionMesh) Translation() dprec.Vec3
func (*CollisionMesh) Triangles ¶
func (m *CollisionMesh) Triangles() []CollisionTriangle
type CollisionSphere ¶
type CollisionSphere struct {
// contains filtered or unexported fields
}
func NewCollisionSphere ¶
func NewCollisionSphere() *CollisionSphere
func (*CollisionSphere) Radius ¶
func (s *CollisionSphere) Radius() float64
func (*CollisionSphere) SetRadius ¶
func (s *CollisionSphere) SetRadius(value float64)
func (*CollisionSphere) SetTranslation ¶
func (s *CollisionSphere) SetTranslation(value dprec.Vec3)
func (*CollisionSphere) Translation ¶
func (s *CollisionSphere) Translation() dprec.Vec3
type ColorEmitter ¶
type Comparison ¶
type Comparison = asset.Comparison
const ( ComparisonNever Comparison = asset.ComparisonNever ComparisonLess Comparison = asset.ComparisonLess ComparisonEqual Comparison = asset.ComparisonEqual ComparisonLessOrEqual Comparison = asset.ComparisonLessOrEqual ComparisonGreater Comparison = asset.ComparisonGreater ComparisonNotEqual Comparison = asset.ComparisonNotEqual ComparisonGreaterOrEqual Comparison = asset.ComparisonGreaterOrEqual ComparisonAlways Comparison = asset.ComparisonAlways )
type ConeEmitter ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
func NewConverter ¶
type CubeImage ¶
type CubeImage struct {
// contains filtered or unexported fields
}
func NewCubeImage ¶
type CullMode ¶
const ( CullModeNone CullMode = asset.CullModeNone CullModeFront CullMode = asset.CullModeFront CullModeBack CullMode = asset.CullModeBack CullModeFrontAndBack CullMode = asset.CullModeFrontAndBack )
type DirectionalLight ¶
type DirectionalLight struct { BaseColorEmitter BaseShadowCaster }
func NewDirectionalLight ¶
func NewDirectionalLight() *DirectionalLight
type DistanceEmitter ¶
type FaceOrientation ¶
type FaceOrientation = asset.FaceOrientation
const ( FaceOrientationCCW FaceOrientation = asset.FaceOrientationCCW FaceOrientationCW FaceOrientation = asset.FaceOrientationCW )
type FilterMode ¶
type FilterMode = asset.FilterMode
const ( FilterModeNearest FilterMode = asset.FilterModeNearest FilterModeLinear FilterMode = asset.FilterModeLinear FilterModeAnisotropic FilterMode = asset.FilterModeAnisotropic )
type Filterable ¶
type Filterable interface { FilterMode() FilterMode SetFilterMode(mode FilterMode) }
type Fragment ¶
type Fragment struct {
// contains filtered or unexported fields
}
func NewFragment ¶
func NewFragment() *Fragment
func (*Fragment) IndexCount ¶
func (*Fragment) IndexOffset ¶
func (*Fragment) SetIndexCount ¶
func (*Fragment) SetIndexOffset ¶
func (*Fragment) SetMetadata ¶
func (*Fragment) SetTopology ¶
type Geometry ¶
type Geometry struct {
// contains filtered or unexported fields
}
func NewGeometry ¶
func NewGeometry() *Geometry
func (*Geometry) AddFragment ¶
func (*Geometry) Format ¶
func (g *Geometry) Format() VertexFormat
func (*Geometry) IndexOffset ¶
func (*Geometry) MaxDistance ¶
func (*Geometry) MinDistance ¶
func (*Geometry) SetFormat ¶
func (g *Geometry) SetFormat(format VertexFormat)
func (*Geometry) SetMaxDistance ¶
func (*Geometry) SetMetadata ¶
func (*Geometry) SetMinDistance ¶
func (*Geometry) VertexOffset ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func BuildImageResource ¶
func (*Image) DataRGBA16F ¶
func (*Image) DataRGBA32F ¶
func (*Image) IsEqualSize ¶
type Joint ¶
type Joint struct {
// contains filtered or unexported fields
}
func (*Joint) InverseBindMatrix ¶
func (*Joint) SetInverseBindMatrix ¶
type Material ¶
type Material struct {
// contains filtered or unexported fields
}
func (*Material) AddForwardPass ¶
func (m *Material) AddForwardPass(pass *MaterialPass)
func (*Material) AddGeometryPass ¶
func (m *Material) AddGeometryPass(pass *MaterialPass)
func (*Material) AddPostprocessPass ¶
func (m *Material) AddPostprocessPass(pass *MaterialPass)
func (*Material) AddShadowPass ¶
func (m *Material) AddShadowPass(pass *MaterialPass)
func (*Material) AddSkyPass ¶
func (m *Material) AddSkyPass(pass *MaterialPass)
func (*Material) ForwardPasses ¶
func (m *Material) ForwardPasses() []*MaterialPass
func (*Material) GeometryPasses ¶
func (m *Material) GeometryPasses() []*MaterialPass
func (*Material) PostprocessPasses ¶
func (m *Material) PostprocessPasses() []*MaterialPass
func (*Material) SetMetadata ¶
func (*Material) SetProperty ¶
func (*Material) SetSampler ¶
func (*Material) ShadowPasses ¶
func (m *Material) ShadowPasses() []*MaterialPass
func (*Material) SkyPasses ¶
func (m *Material) SkyPasses() []*MaterialPass
type MaterialPass ¶
type MaterialPass struct {
// contains filtered or unexported fields
}
func NewMaterialPass ¶
func NewMaterialPass() *MaterialPass
func (*MaterialPass) Blending ¶
func (m *MaterialPass) Blending() bool
func (*MaterialPass) Culling ¶
func (m *MaterialPass) Culling() CullMode
func (*MaterialPass) DepthComparison ¶
func (m *MaterialPass) DepthComparison() Comparison
func (*MaterialPass) DepthTest ¶
func (m *MaterialPass) DepthTest() bool
func (*MaterialPass) DepthWrite ¶
func (m *MaterialPass) DepthWrite() bool
func (*MaterialPass) FrontFace ¶
func (m *MaterialPass) FrontFace() FaceOrientation
func (*MaterialPass) Layer ¶
func (m *MaterialPass) Layer() int
func (*MaterialPass) SetBlending ¶
func (m *MaterialPass) SetBlending(blending bool)
func (*MaterialPass) SetCulling ¶
func (m *MaterialPass) SetCulling(culling CullMode)
func (*MaterialPass) SetDepthComparison ¶
func (m *MaterialPass) SetDepthComparison(depthComparison Comparison)
func (*MaterialPass) SetDepthTest ¶
func (m *MaterialPass) SetDepthTest(depthTest bool)
func (*MaterialPass) SetDepthWrite ¶
func (m *MaterialPass) SetDepthWrite(depthWrite bool)
func (*MaterialPass) SetFrontFace ¶
func (m *MaterialPass) SetFrontFace(frontFace FaceOrientation)
func (*MaterialPass) SetLayer ¶
func (m *MaterialPass) SetLayer(layer int)
func (*MaterialPass) SetShader ¶
func (m *MaterialPass) SetShader(shader *Shader)
func (*MaterialPass) Shader ¶
func (m *MaterialPass) Shader() *Shader
type Mesh ¶
type Mesh struct {
// contains filtered or unexported fields
}
func (*Mesh) Definition ¶
func (m *Mesh) Definition() *MeshDefinition
func (*Mesh) SetArmature ¶
func (*Mesh) SetDefinition ¶
func (m *Mesh) SetDefinition(definition *MeshDefinition)
type MeshDefinition ¶
type MeshDefinition struct {
// contains filtered or unexported fields
}
func (*MeshDefinition) BindMaterial ¶
func (m *MeshDefinition) BindMaterial(name string, material *Material)
func (*MeshDefinition) Geometry ¶
func (m *MeshDefinition) Geometry() *Geometry
func (*MeshDefinition) Materials ¶
func (m *MeshDefinition) Materials() []*Material
func (*MeshDefinition) Name ¶
func (m *MeshDefinition) Name() string
func (*MeshDefinition) SetGeometry ¶
func (m *MeshDefinition) SetGeometry(geometry *Geometry)
func (*MeshDefinition) SetName ¶
func (m *MeshDefinition) SetName(name string)
type Metadata ¶
func (Metadata) HasCollision ¶
func (Metadata) HasMaxDistance ¶
func (Metadata) HasMinDistance ¶
func (Metadata) HasSkipCollision ¶
func (Metadata) IsInvisible ¶
type MipmapLayer ¶ added in v0.21.0
type MipmapLayer struct {
// contains filtered or unexported fields
}
func (*MipmapLayer) Depth ¶ added in v0.21.0
func (l *MipmapLayer) Depth() int
func (*MipmapLayer) Height ¶ added in v0.21.0
func (l *MipmapLayer) Height() int
func (*MipmapLayer) Layers ¶ added in v0.21.0
func (l *MipmapLayer) Layers() []TextureLayer
func (*MipmapLayer) Width ¶ added in v0.21.0
func (l *MipmapLayer) Width() int
type Mipmappable ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) AddAnimation ¶
func (*Model) Animations ¶
func (*Model) FlattenNodes ¶
func (*Model) RemoveNode ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) RemoveNode ¶
func (*Node) SetMetadata ¶
func (*Node) SetRotation ¶
func (*Node) SetTranslation ¶
func (*Node) Translation ¶
type PointLight ¶
type PointLight struct { BaseColorEmitter BaseDistanceEmitter BaseShadowCaster }
func NewPointLight ¶
func NewPointLight() *PointLight
type RotationKeyframe ¶
type Sampler ¶
type Sampler struct { BaseTextureReferrer BaseWrappable BaseFilterable BaseMipmappable }
type ScaleKeyframe ¶
type Shader ¶
type Shader struct {
// contains filtered or unexported fields
}
func NewShader ¶
func NewShader(shaderType ShaderType) *Shader
func (*Shader) SetShaderType ¶
func (s *Shader) SetShaderType(shaderType ShaderType)
func (*Shader) SetSourceCode ¶
func (*Shader) ShaderType ¶
func (s *Shader) ShaderType() ShaderType
func (*Shader) SourceCode ¶
type ShaderType ¶
type ShaderType = asset.ShaderType
const ( ShaderTypeGeometry ShaderType = asset.ShaderTypeGeometry ShaderTypeShadow ShaderType = asset.ShaderTypeShadow ShaderTypeForward ShaderType = asset.ShaderTypeForward ShaderTypeSky ShaderType = asset.ShaderTypeSky ShaderTypePostprocess ShaderType = asset.ShaderTypePostprocess )
type ShadowCaster ¶
type SpotLight ¶
type SpotLight struct { BaseColorEmitter BaseDistanceEmitter BaseConeEmitter BaseShadowCaster }
func NewSpotLight ¶
func NewSpotLight() *SpotLight
type Texture ¶
type Texture struct {
// contains filtered or unexported fields
}
func Create2DTexture ¶ added in v0.21.0
func Create2DTexture(width, height, mipmaps int, format TextureFormat) *Texture
func CreateCubeTexture ¶ added in v0.21.0
func CreateCubeTexture(dimension, mipmaps int, format TextureFormat) *Texture
func (*Texture) Format ¶
func (t *Texture) Format() TextureFormat
func (*Texture) GenerateMipmaps ¶
func (*Texture) Kind ¶
func (t *Texture) Kind() TextureKind
func (*Texture) SetGenerateMipmaps ¶
func (*Texture) SetLayerImage ¶
type TextureFormat ¶
type TextureFormat = asset.TexelFormat
const ( TextureFormatR8 TextureFormat = asset.TexelFormatR8 TextureFormatR16 TextureFormat = asset.TexelFormatR16 TextureFormatR16F TextureFormat = asset.TexelFormatR16F TextureFormatR32F TextureFormat = asset.TexelFormatR32F TextureFormatRG8 TextureFormat = asset.TexelFormatRG8 TextureFormatRG16 TextureFormat = asset.TexelFormatRG16 TextureFormatRG16F TextureFormat = asset.TexelFormatRG16F TextureFormatRG32F TextureFormat = asset.TexelFormatRG32F TextureFormatRGB8 TextureFormat = asset.TexelFormatRGB8 TextureFormatRGB16 TextureFormat = asset.TexelFormatRGB16 TextureFormatRGB16F TextureFormat = asset.TexelFormatRGB16F TextureFormatRGB32F TextureFormat = asset.TexelFormatRGB32F TextureFormatRGBA8 TextureFormat = asset.TexelFormatRGBA8 TextureFormatRGBA16 TextureFormat = asset.TexelFormatRGBA16 TextureFormatRGBA16F TextureFormat = asset.TexelFormatRGBA16F TextureFormatRGBA32F TextureFormat = asset.TexelFormatRGBA32F TextureFormatDepth16F TextureFormat = asset.TexelFormatDepth16F TextureFormatDepth32F TextureFormat = asset.TexelFormatDepth32F )
type TextureKind ¶
type TextureKind uint8
const ( TextureKind2D TextureKind = iota TextureKind2DArray TextureKind3D TextureKindCube )
type TextureLayer ¶
type TextureLayer struct {
// contains filtered or unexported fields
}
func (*TextureLayer) Data ¶
func (l *TextureLayer) Data() []byte
type TextureReferrer ¶
type Topology ¶
const ( TopologyPoints Topology = asset.TopologyPoints TopologyLineList Topology = asset.TopologyLineList TopologyLineStrip Topology = asset.TopologyLineStrip TopologyTriangleList Topology = asset.TopologyTriangleList TopologyTriangleStrip Topology = asset.TopologyTriangleStrip )
type TranslationKeyframe ¶
type Vertex ¶
type VertexFormat ¶
type VertexFormat uint8
const ( VertexFormatCoord VertexFormat = 1 << iota VertexFormatNormal VertexFormatTangent VertexFormatTexCoord VertexFormatColor VertexFormatWeights VertexFormatJoints )
type WrapMode ¶
const ( WrapModeClamp WrapMode = asset.WrapModeClamp WrapModeRepeat WrapMode = asset.WrapModeRepeat WrapModeMirroredRepeat WrapMode = asset.WrapModeMirroredRepeat )
Click to show internal directories.
Click to hide internal directories.