Versions in this module Expand all Collapse all v0 v0.0.1 Jun 24, 2021 Changes in this version + type Ambient struct + func NewAmbient(opts ...AmbientOption) *Ambient + func (a *Ambient) Color() color.RGBA + func (a *Ambient) Intensity() float64 + func (l *Ambient) Type() object.Type + type AmbientOption func(a *Ambient) + func WithAmbientColor(c color.RGBA) AmbientOption + func WithAmbientIntensity(I float64) AmbientOption + type Environment interface + Color func() color.RGBA + Intensity func() float64 + type Point struct + func (l *Point) CastShadow() bool + func (l *Point) Color() color.RGBA + func (l *Point) Intensity() float64 + func (l *Point) Position() math.Vector + func (l *Point) Type() object.Type + type PointOption func(l *Point) + func WithPointLightColor(c color.RGBA) PointOption + func WithPointLightIntensity(I float64) PointOption + func WithPointLightPosition(pos math.Vector) PointOption + func WithShadowMap(enable bool) PointOption + type Source interface + CastShadow func() bool + Color func() color.RGBA + Intensity func() float64 + Position func() math.Vector + func NewPoint(opts ...PointOption) Source