SetIntensity sets the intensity of this light
(intensity float32)
| 58 | |
| 59 | // SetIntensity sets the intensity of this light |
| 60 | func (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 |
| 68 | func (lp *Point) Intensity() float32 { |
no test coverage detected