DirectionalLight_v5 Op

DirectionalLight

Directional light for phong shading


This light illuminates the whole scene. It does not have a position, only a direction. You can think of it as a sunlight.


Edit Documentation

Full Name
  • Ops.Gl.Phong.DirectionalLight_v5
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorTest Patches


 

Example Patch DirectionalLight example

Example for the DirectionalLight op.

Open In Editor

INPUT PORTS


Trigger In (Trigger)

Trigger input

Light Attributes

Cast Light (Number:boolean )
Intensity (Number)

intensity of the directional light

Direction

X (Number)

Direction X

Y (Number)

Direction Y

Z (Number)

Direction Z

Color

R (Number)

R color channel

G (Number)

G color channel

B (Number)

B color channel

Specular Color

Specular R (Number)

specular reflection color channel R

Specular G (Number)

specular reflection color channel G

Specular B (Number)

specular reflection color channel B

Cast Shadow (Number:boolean )

if activated, light will generate a shadow map to be used with the shadow material extension

Shadow Map Settings

Rendering Active (Number:boolean )
Map Size index (Number:integer )

index of the map size

Shadow Map Settings

Map Size (String)

the size of the generated shadow map, possible values: 256, 512, 1024, 2048

Shadow Strength (Number)

strength of the shadows

LR-BottomTop (Number)

L, R, Bottom and Top culling of the shadow map camera's frustum

Near (Number)

near culling of the shadow map camera's frustum

Far (Number)

far culling of the shadow map camera's frustum

Bias (Number)

biasing for the shadow comparison, refer to the shadow op for an in depth explanation

Polygon Offset (Number:integer )

polygon offset for the shadow map rendering, refer to the shadow op for an in depth explanation

Normal Offset (Number)

normal offset for the shadow map rendering, refer to the shadow op for an in depth explanation

Blur Amount (Number)

blur factor for the VSM shadow algorithm, refer to the shadow op for an in depth explanation

Advanced Options

Enable Advanced (Number:boolean )
MSAA index (Number:integer )

Advanced Options

MSAA (String)

MSAA factor

Texture Filter index (Number:integer )

Advanced Options

Texture Filter (String)

texture filter type

Anisotropic index (Number:integer )

Advanced Options

Anisotropic (String)

anisotropic factor

OUTPUT PORTS


Trigger Out (Trigger)

trigger output

Shadow Map (Object)

generated shadow map output


Patches using DirectionalLight_v5

  • Examples
  • Public
  • My Patches

Changelog


Ops.User.cables.ShadowDirectionalLightCGL renamed to Ops.Admin.ShadowDirectionalLightCGLuser avatarcables - 2020-04-23 17:02
Ops.Admin.ShadowDirectionalLightCGL renamed to Ops.Gl.Phong.DirectionalLight_v5user avatarpandur - 2020-07-29 22:50