Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NLightModel Class / EnableLighting Property


In This Topic
    EnableLighting Property
    In This Topic
    Enables/disables the lighting effects.
    Syntax
    'Declaration
     
    
    Public Property EnableLighting As System.Boolean
    'Usage
     
    
    Dim instance As NLightModel
    Dim value As System.Boolean
     
    instance.EnableLighting = value
     
    value = instance.EnableLighting
    public System.bool EnableLighting {get; set;}
    Remarks
    When lighting is turned off, all lighting properties (light sources and materials) are discarded and have no effect on the rendered scene. By default the lighting is enabled. You can disable it to increase the rendering performance or in case that lighting effects are not really necessary (for example in 2D charts).
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also