Наследование: PointLight
Пример #1
0
        /// <summary>
        /// updates the shader values for the light and sets the appropriate CurrentTechnique
        /// </summary>
        /// <param name="light">Light.</param>
        public void UpdateForLight(SpotLight light)
        {
            UpdateForLight(light as PointLight);
            SetSpotLightDirection(light.Direction);
            SetSpotConeAngle(light.ConeAngle);

            spotLightPass.Apply();
        }
Пример #2
0
        /// <summary>
        /// updates the shader values for the light and sets the appropriate CurrentTechnique
        /// </summary>
        /// <param name="light">Light.</param>
        public void updateForLight(SpotLight light)
        {
            updateForLight(light as PointLight);
            setSpotLightDirection(light.direction);
            setSpotConeAngle(light.coneAngle);

            spotLightPass.Apply();
        }
Пример #3
0
        /// <summary>
        /// updates the shader values for the light and sets the appropriate CurrentTechnique
        /// </summary>
        /// <param name="light">Light.</param>
        public void UpdateForLight(SpotLight light)
        {
            UpdateForLight(light as PointLight);
            SetSpotLightDirection(light.Direction);
            SetSpotConeAngle(light.ConeAngle);

            CurrentTechnique = Techniques["DeferredSpotLight"];
            spotLightPass.Apply();
        }
Пример #4
0
 void renderLight(SpotLight light)
 {
     _lightEffect.updateForLight(light);
     _polygonMesh.render();
 }
Пример #5
0
		void renderLight( SpotLight light )
		{
			_lightEffect.updateForLight( light );
			_polygonMesh.render();
		}
Пример #6
0
        /// <summary>
        /// updates the shader values for the light and sets the appropriate CurrentTechnique
        /// </summary>
        /// <param name="light">Light.</param>
        public void updateForLight( SpotLight light )
        {
            updateForLight( light as PointLight );
            setSpotLightDirection( light.direction );
            setSpotConeAngle( light.coneAngle );

            spotLightPass.Apply();
        }