public void Init(ref SpotLightBoxShape light) { instanceID = light.instanceID; color = light.color; indirectColor = light.indirectColor; orientation = light.orientation; position = light.position; range = light.range; coneAngle = 0.0f; innerConeAngle = 0.0f; shape0 = light.width; shape1 = light.height; type = LightType.SpotBoxShape; mode = light.mode; shadow = (byte)(light.shadow ? 1 : 0); falloff = FalloffType.Undefined; }
public void Init(ref SpotLightBoxShape light, ref Cookie cookie) { this.instanceID = light.instanceID; this.cookieID = cookie.instanceID; this.cookieScale = cookie.scale; this.color = light.color; this.indirectColor = light.indirectColor; this.orientation = light.orientation; this.position = light.position; this.range = light.range; this.coneAngle = 0f; this.innerConeAngle = 0f; this.shape0 = light.width; this.shape1 = light.height; this.type = LightType.SpotBoxShape; this.mode = light.mode; this.shadow = (light.shadow ? 1 : 0); this.falloff = FalloffType.Undefined; }
public void Init(ref SpotLightBoxShape light) { Cookie cookie = Cookie.Defaults(); this.Init(ref light, ref cookie); }