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

Method SetColor

light/point.go:46–51  ·  view source on GitHub ↗

SetColor sets the color of this light

(color *math32.Color)

Source from the content-addressed store, hash-verified

44
45// SetColor sets the color of this light
46func (lp *Point) SetColor(color *math32.Color) {
47
48 lp.color = *color
49 lp.udata.color = lp.color
50 lp.udata.color.MultiplyScalar(lp.intensity)
51}
52
53// Color returns the current color of this light
54func (lp *Point) Color() math32.Color {

Callers 1

NewPointFunction · 0.45

Calls 1

MultiplyScalarMethod · 0.45

Tested by

no test coverage detected