Versions in this module Expand all Collapse all v0 v0.1.0 Mar 14, 2019 Changes in this version + type Ambient struct + func NewAmbient(color *math32.Color, intensity float32) *Ambient + func (la *Ambient) Color() math32.Color + func (la *Ambient) Intensity() float32 + func (la *Ambient) RenderSetup(gs *gls.GLS, rinfo *core.RenderInfo, idx int) + func (la *Ambient) SetColor(color *math32.Color) + func (la *Ambient) SetIntensity(intensity float32) + type Directional struct + func NewDirectional(color *math32.Color, intensity float32) *Directional + func (ld *Directional) Color() math32.Color + func (ld *Directional) Intensity() float32 + func (ld *Directional) RenderSetup(gs *gls.GLS, rinfo *core.RenderInfo, idx int) + func (ld *Directional) SetColor(color *math32.Color) + func (ld *Directional) SetIntensity(intensity float32) + type ILight interface + RenderSetup func(gs *gls.GLS, rinfo *core.RenderInfo, idx int) + type Point struct + func NewPoint(color *math32.Color, intensity float32) *Point + func (lp *Point) Color() math32.Color + func (lp *Point) Intensity() float32 + func (lp *Point) LinearDecay() float32 + func (lp *Point) QuadraticDecay() float32 + func (lp *Point) RenderSetup(gs *gls.GLS, rinfo *core.RenderInfo, idx int) + func (lp *Point) SetColor(color *math32.Color) + func (lp *Point) SetIntensity(intensity float32) + func (lp *Point) SetLinearDecay(decay float32) + func (lp *Point) SetQuadraticDecay(decay float32) + type Spot struct + func NewSpot(color *math32.Color, intensity float32) *Spot + func (l *Spot) AngularDecay() float32 + func (l *Spot) Color() math32.Color + func (l *Spot) CutoffAngle() float32 + func (l *Spot) Intensity() float32 + func (l *Spot) LinearDecay() float32 + func (l *Spot) QuadraticDecay() float32 + func (l *Spot) RenderSetup(gs *gls.GLS, rinfo *core.RenderInfo, idx int) + func (l *Spot) SetAngularDecay(decay float32) + func (l *Spot) SetColor(color *math32.Color) + func (l *Spot) SetCutoffAngle(angle float32) + func (l *Spot) SetIntensity(intensity float32) + func (l *Spot) SetLinearDecay(decay float32) + func (l *Spot) SetQuadraticDecay(decay float32)