SceneLightingEffect Clase

Definición

Controla las propiedades reflectantes de un SpriteVisual. Un sceneLightingEffect sobrescribirá los valores predeterminados de CompositionLight . Se usa para controlar las propiedades reflectantes de un SpriteVisual. NormalMap se puede usar como origen de entrada, pero no es necesario.

public ref class SceneLightingEffect sealed : IGraphicsEffect
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.LiftedContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.LiftedContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SceneLightingEffect final : IGraphicsEffect
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
class SceneLightingEffect final : IGraphicsEffect
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.LiftedContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.LiftedContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SceneLightingEffect : IGraphicsEffect
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
public sealed class SceneLightingEffect : IGraphicsEffect
function SceneLightingEffect()
Public NotInheritable Class SceneLightingEffect
Implements IGraphicsEffect
Herencia
Object Platform::Object IInspectable SceneLightingEffect
Atributos
Implementaciones

Ejemplos

IGraphicsEffect graphicsEffect = new CompositeEffect() 
{ 
  Mode = CanvasComposite.Add, 
  Sources = 
  { 
    new CompositionEffectSourceParameter("ImageSource"), 
    new SceneLightingEffect() 
    { 
      Name = "Material",                                     
      AmbientAmount = 0, 
      DiffuseAmount = .75f, 
      SpecularAmount = 0, 
      SpecularShine = 20 
      NormalMapSource = new CompositionEffectSourceParameter("NormalMap"), 
    } 
  } 
}; 

Constructores

SceneLightingEffect()

Crea una instancia de SceneLightingEffect.

Propiedades

AmbientAmount

Proporción de AmbientLight predefinida utilizada por el efecto.

DiffuseAmount

Intensidad de la luz difusa.

Name

Nombre de la luz.

NormalMapSource

Mapa normal del efecto.

ReflectanceModel

Obtiene o establece un valor que indica cómo se modela la reflectancia de sceneLightingEffect .

SpecularAmount

Intensidad de la luz especular.

SpecularShine

Potencia especular para el modelo de iluminación Blinn-Phong.

Se aplica a

Consulte también