Skip to content

package engine_entity_data_light

import "kaiju/engine_entity_data/engine_entity_data_light"

Constants

LightTypeDirectional

LightType(iota)

LightTypePoint

LightTypeSpot

Types

LightEntityData

struct

type LightEntityData struct {
    Ambient      matrix.Vec3 `default:"0.1,0.1,0.1"`
    Diffuse      matrix.Vec3 `default:"1,1,1"`
    Specular     matrix.Vec3 `default:"1,1,1"`
    Intensity    float32     `default:"5"`
    Constant     float32     `default:"1"`
    Linear       float32     `default:"0.0014"`
    Quadratic    float32     `default:"0.000007"`
    Cutoff       float32     `default:"0.8433914458128857"` // matrix.Cos(matrix.Deg2Rad(32.5))
    OuterCutoff  float32     `default:"0.636078220277764"`  // matrix.Cos(matrix.Deg2Rad(50.5))
    Type         LightType
    CastsShadows bool
}

LightEntityData.Init

func (c LightEntityData) Init(e *engine.Entity, host *engine.Host)

LightModule

struct

type LightModule struct {
    Data LightEntityData
    // Has unexported fields.
}

LightType

int

type LightType int