package lighting
import "kaiju/engine/lighting"
Types
LightCollection
struct
type LightCollection struct {
Cache []rendering.Light
// Has unexported fields.
}
LightCollection.Add
func (c *LightCollection) Add(transform *matrix.Transform, target rendering.Light) *LightEntry
LightCollection.Clear
func (c *LightCollection) Clear()
LightCollection.HasChanges
func (c *LightCollection) HasChanges() bool
LightCollection.Remove
func (c *LightCollection) Remove(light *LightEntry)
LightCollection.UpdateCache
func (c *LightCollection) UpdateCache(point matrix.Vec3) []rendering.Light
LightEntry
struct
type LightEntry struct {
rendering.Light
Transform *matrix.Transform
// Has unexported fields.
}
struct
type LightingInformation struct {
Lights LightCollection
}
func NewLightingInformation(lightCacheCapacity int) LightingInformation
func (l *LightingInformation) Update(point matrix.Vec3)