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

Method SetIntensity

light/point.go:60–65  ·  view source on GitHub ↗

SetIntensity sets the intensity of this light

(intensity float32)

Source from the content-addressed store, hash-verified

58
59// SetIntensity sets the intensity of this light
60func (lp *Point) SetIntensity(intensity float32) {
61
62 lp.intensity = intensity
63 lp.udata.color = lp.color
64 lp.udata.color.MultiplyScalar(lp.intensity)
65}
66
67// Intensity returns the current intensity of this light
68func (lp *Point) Intensity() float32 {

Callers 1

NewPointFunction · 0.45

Calls 1

MultiplyScalarMethod · 0.45

Tested by

no test coverage detected