package
0.2.0
Repository: https://github.com/g3n/engine.git
Documentation: pkg.go.dev

# Functions

NewBasic returns a pointer to a new Basic material.
NewMaterial creates and returns a pointer to a new Material.
NewPhysical creates and returns a pointer to a new Physical material.
NewPoint creates and returns a pointer to a new point material.
NewStandard creates and returns a pointer to a new standard material.

# Constants

The various blending types.
The various blending types.
The various blending types.
The various blending types.
The various blending types.
The various blending types.
The face side(s) to be rendered.
The face side(s) to be rendered.
The face side(s) to be rendered.
The possible UseLights values.
The possible UseLights values.
The possible UseLights values.
The possible UseLights values.
The possible UseLights values.
The possible UseLights values.

# Structs

Basic is a simple material that uses the 'basic' shader.
Material is the base material.
Physical is a physically based rendered material which uses the metallic-roughness model.
Point material is normally used for single point sprites.
Standard material supports the classic lighting model with ambient, diffuse, specular and emissive lights.

# Interfaces

IMaterial is the interface for all materials.

# Type aliases

Blending specifies the blending mode.
Side represents the material's visible side(s).
UseLights is a bitmask that specifies which types of lights affect the material.