Nevron .NET Vision
Nevron.GraphicsCore Namespace / NLightSource Class / CoordinateMode Property


In This Topic
    CoordinateMode Property
    In This Topic
    Gets/sets a value indicating whether the light source position and direction are specified in model space or in camera space.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("General")>
    <System.ComponentModel.DescriptionAttribute("Gets/sets a value indicating whether the light source coordinates are specified in model space or in camera space.")>
    <System.ComponentModel.DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    <System.Xml.Serialization.XmlAttributeAttribute()>
    Public Property CoordinateMode As LightSourceCoordinateMode
    'Usage
     
    
    Dim instance As NLightSource
    Dim value As LightSourceCoordinateMode
     
    instance.CoordinateMode = value
     
    value = instance.CoordinateMode
    [System.ComponentModel.Category("General")]
    [System.ComponentModel.Description("Gets/sets a value indicating whether the light source coordinates are specified in model space or in camera space.")]
    [System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    [System.Xml.Serialization.XmlAttribute()]
    public LightSourceCoordinateMode CoordinateMode {get; set;}
    Remarks
    Light sources that are defined in model space remain static in relation to the scene when the camera is moved. Light sources that are defined in camera space are "attached" to the camera. By default the coordinates are specified in model space.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also