Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ambient ¶
type Ambient struct { math.TransformContext // not used // contains filtered or unexported fields }
func NewAmbient ¶
func NewAmbient(opts ...AmbientOption) *Ambient
type AmbientOption ¶
type AmbientOption func(a *Ambient)
func WithAmbientColor ¶
func WithAmbientColor(c color.RGBA) AmbientOption
func WithAmbientIntensity ¶
func WithAmbientIntensity(I float64) AmbientOption
type Environment ¶
Environment represents the abstraction of environment lighting. Such as ambient light, etc.
type Point ¶
type Point struct { math.TransformContext // contains filtered or unexported fields }
Point is a point light
func (*Point) CastShadow ¶
type PointOption ¶
type PointOption func(l *Point)
func WithPointLightColor ¶
func WithPointLightColor(c color.RGBA) PointOption
func WithPointLightIntensity ¶
func WithPointLightIntensity(I float64) PointOption
func WithPointLightPosition ¶
func WithPointLightPosition(pos math.Vector) PointOption
func WithShadowMap ¶
func WithShadowMap(enable bool) PointOption
Click to show internal directories.
Click to hide internal directories.