MCPcopy Create free account
hub / github.com/demoth/jake2 / AddLightStyle

Method AddLightStyle

client/src/main/java/jake2/client/V.java:158–169  ·  view source on GitHub ↗
(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 };

Callers 1

AddLightStylesMethod · 0.95

Calls 1

ErrorMethod · 0.95

Tested by

no test coverage detected