material

package
v0.0.0-...-cf57177 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FaceSide

type FaceSide int
const (
	FrontSide FaceSide = iota
	BackSide
	DoubleSide
)

type Material

type Material interface {
	Options() Options
	Shader() shader.Shader
	NeedsUpdate() bool
	SetNeedsUpdate(bool)
}

type MeshBasicMaterial

type MeshBasicMaterial struct {
	// contains filtered or unexported fields
}

func NewMeshBasicMaterial

func NewMeshBasicMaterial(paramters MeshBasicMaterialParameters) *MeshBasicMaterial

func (*MeshBasicMaterial) NeedsUpdate

func (m *MeshBasicMaterial) NeedsUpdate() bool

func (*MeshBasicMaterial) Options

func (m *MeshBasicMaterial) Options() Options

func (*MeshBasicMaterial) Parameters

func (*MeshBasicMaterial) SetNeedsUpdate

func (m *MeshBasicMaterial) SetNeedsUpdate(needsUpdate bool)

func (*MeshBasicMaterial) Shader

func (m *MeshBasicMaterial) Shader() shader.Shader

type MeshBasicMaterialParameters

type MeshBasicMaterialParameters struct {
	Options Options
}

type Options

type Options struct {
	Side         FaceSide
	Transparent  bool
	Opacity      float32
	VertexColors bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL