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.


Full Name
  • Ops.Gl.Phong.DirectionalLight_v5
Visibility
  • Core Op - visible for everyone
License
  • MIT
AuthorgithubMaintained by TeamCore Libraries
  • cgl_light
  • cgl



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) 256  512  1024  2048 

index of the map size

Shadow Strength (Number)

strength of the shadows

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)

OUTPUT PORTS


Trigger Out (Trigger)

trigger output

Shadow Map (Object)

generated shadow map output


Changelog

Patches using DirectionalLight_v5

  • Examples
  • Public
  • My Patches