Nez.Portable/Graphics/DeferredLighting/Effects/DeferredLightEffect.cs
/// <summary>
/// updates the shader values for the light and sets the appropriate CurrentTechnique
/// </summary>
/// <param name="light">Light.</param>
updates the shader values for the light and sets the appropriate CurrentTechnique
updates the shader values for the light and sets the appropriate CurrentTechnique
public void updateForLight(SpotLight light)
        {
            updateForLight(light as PointLight);
            setSpotLightDirection(light.direction);
            setSpotConeAngle(light.coneAngle);
            spotLightPass.Apply();
        }
public void updateForLight ( SpotLight light ) { updateForLight ( light as PointLight ) ; setSpotLightDirection ( light . direction ) ; setSpotConeAngle ( light . coneAngle ) ; spotLightPass . Apply ( ) ; }
updates the shader values for the light and sets the appropriate CurrentTechnique
updates the shader values for the light and sets the appropriate CurrentTechnique
light
SpotLight
None