Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NLightModel Class / SetPredefinedLightModel Method


In This Topic
    SetPredefinedLightModel Method
    In This Topic
    Configures the object to use a predefined light model.
    Syntax
    'Declaration
     
    
    Public Sub SetPredefinedLightModel( _
       ByVal predefinedLightModel As ENPredefinedLightModel _
    ) 
    'Usage
     
    
    Dim instance As NLightModel
    Dim predefinedLightModel As ENPredefinedLightModel
     
    instance.SetPredefinedLightModel(predefinedLightModel)
    public void SetPredefinedLightModel( 
       ENPredefinedLightModel predefinedLightModel
    )

    Parameters

    predefinedLightModel
    Remarks
    The function automatically enables lighting, creates one or more light sources with predefined settings and places them in the LightSources collection. After loading the predefined light model you can modify the parameters of individual light sources to customize the lighting effect.
    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