Inheritance: PointLight
コード例 #1
0
ファイル: DeferredLightEffect.cs プロジェクト: wacharlb/Nez
        /// <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
ファイル: DeferredLightEffect.cs プロジェクト: ldlac/Nez
        /// <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
ファイル: DeferredLightEffect.cs プロジェクト: RastaCow/Nez
        /// <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();
        }