Versions in this module Expand all Collapse all v0 v0.3.26 Nov 25, 2021 v0.3.25 Nov 13, 2021 v0.3.24 Oct 11, 2021 v0.3.23 Aug 14, 2021 v0.3.22 Aug 9, 2021 Changes in this version + const MaxLights + var Identity = func() gfx.Matrix { ... }() + type BakedModelObject struct + func (baked *BakedModelObject) Render(transform *gfx.Matrix, skipTransparent bool) + type BufferData struct + Nx float32 + Ny float32 + Nz float32 + S uint16 + T uint16 + X float32 + Y float32 + Z float32 + type Model struct + Normals [][3]float32 + Objects []*ModelObjectFaces + TexCoord [][2]float32 + Vertex []gfx.Vector + func ParseObj(r io.Reader) (*Model, error) + type ModelFace struct + Normal int + TexCoord int + Vertex int + type ModelInstance struct + Name string + Rx float32 + Ry float32 + Rz float32 + Sx float32 + Sy float32 + Sz float32 + X float32 + Y float32 + Z float32 + type ModelObject struct + Buffer []BufferData + Instances []*ModelInstance + Material string + Name string + ShaderMode int + Tex *gfx.AssetTexture + Transparent bool + func NewObject(name string) *ModelObject + func Object(name string) *ModelObject + func SceneBaseObject(name string) *ModelObject + func SceneFurnitureObject(name string) *ModelObject + func SpriteObject(name string, s *sprites.Sprite) *ModelObject + func (o *ModelObject) Bake() []*BakedModelObject + func (o *ModelObject) MarkDirty() + type ModelObjectFaces struct + Faces [][3]ModelFace + type Scene struct + CamAngle [2]float32 + CamDist float32 + CamPos [3]float32 + FOV float32 + HorizontalFOV bool + LightAmbient [3]float32 + LightAngles [MaxLights][2]float32 + LightIntensity [MaxLights][3]float32 + Objects []*SceneObject + Skybox *gfx.AssetTexture + func (s *Scene) Clone() *Scene + func (s *Scene) Render() + type SceneObject struct + Model *ModelObject + Transform gfx.Matrix