SetColor sets the color of this light
(color *math32.Color)
| 44 | |
| 45 | // SetColor sets the color of this light |
| 46 | func (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 |
| 54 | func (lp *Point) Color() math32.Color { |
no test coverage detected