Пример #1
0
 public void Init(ref SpotLightPyramidShape light)
 {
     instanceID     = light.instanceID;
     color          = light.color;
     indirectColor  = light.indirectColor;
     orientation    = light.orientation;
     position       = light.position;
     range          = light.range;
     coneAngle      = light.angle;
     innerConeAngle = 0.0f;
     shape0         = light.aspectRatio;
     shape1         = 0.0f;
     type           = LightType.SpotPyramidShape;
     mode           = light.mode;
     shadow         = (byte)(light.shadow ? 1 : 0);
     falloff        = light.falloff;
 }
Пример #2
0
 public void Init(ref SpotLightPyramidShape 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      = light.angle;
     this.innerConeAngle = 0f;
     this.shape0         = light.aspectRatio;
     this.shape1         = 0f;
     this.type           = LightType.SpotPyramidShape;
     this.mode           = light.mode;
     this.shadow         = (light.shadow ? 1 : 0);
     this.falloff        = light.falloff;
 }
Пример #3
0
        public void Init(ref SpotLightPyramidShape light)
        {
            Cookie cookie = Cookie.Defaults();

            this.Init(ref light, ref cookie);
        }