(float[] org, float intensity, float r, float g, float b)
| 138 | * ===================== |
| 139 | */ |
| 140 | static void AddLight(float[] org, float intensity, float r, float g, float b) { |
| 141 | dlight_t dl; |
| 142 | |
| 143 | if (r_numdlights >= MAX_DLIGHTS) |
| 144 | return; |
| 145 | dl = r_dlights[r_numdlights++]; |
| 146 | Math3D.VectorCopy(org, dl.origin); |
| 147 | dl.intensity = intensity; |
| 148 | dl.color[0] = r; |
| 149 | dl.color[1] = g; |
| 150 | dl.color[2] = b; |
| 151 | } |
| 152 | |
| 153 | /* |
| 154 | * ===================== |
no test coverage detected