Method
AddLightStyle
(int style, float r, float g, float b)
Source from the content-addressed store, hash-verified
| 156 | * ===================== |
| 157 | */ |
| 158 | static void AddLightStyle(int style, float r, float g, float b) { |
| 159 | lightstyle_t ls; |
| 160 | |
| 161 | if (style < 0 || style > MAX_LIGHTSTYLES) |
| 162 | Com.Error(ERR_DROP, "Bad light style " + style); |
| 163 | ls = r_lightstyles[style]; |
| 164 | |
| 165 | ls.white = r + g + b; |
| 166 | ls.rgb[0] = r; |
| 167 | ls.rgb[1] = g; |
| 168 | ls.rgb[2] = b; |
| 169 | } |
| 170 | |
| 171 | // stack variable |
| 172 | private static final float[] origin = { 0, 0, 0 }; |
Tested by
no test coverage detected