MCPcopy Index your code
hub / github.com/g3n/engine / SetLinearDecay

Method SetLinearDecay

light/point.go:74–77  ·  view source on GitHub ↗

SetLinearDecay sets the linear decay factor as a function of the distance

(decay float32)

Source from the content-addressed store, hash-verified

72
73// SetLinearDecay sets the linear decay factor as a function of the distance
74func (lp *Point) SetLinearDecay(decay float32) {
75
76 lp.udata.linearDecay = decay
77}
78
79// LinearDecay returns the current linear decay factor
80func (lp *Point) LinearDecay() float32 {

Callers 1

NewPointFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected