beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

DirectionalLight_v5 Op

Ops.Gl.Phong.DirectionalLight_v5


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.



Inputs

Trigger In (Trigger)

Trigger input

Light Attributes

Cast Light (boolean /Number)
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 (boolean /Number)

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

Shadow Map Settings

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

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 (integer /Number)

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 (boolean /Number)
MSAA index (integer /Number)

Advanced Options

MSAA (String)

MSAA factor

Texture Filter index (integer /Number)

Advanced Options

Texture Filter (String)

texture filter type

Anisotropic index (integer /Number)

Advanced Options

Anisotropic (String)

anisotropic factor

Outputs

Trigger Out (Trigger)

trigger output

Shadow Map (Object)

generated shadow map output

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

DirectionalLight example

Example for the DirectionalLight op.

Open Example In Editor

Patches using DirectionalLight_v5

Changelog


Ops.User.cables.ShadowDirectionalLightCGL renamed to Ops.Admin.ShadowDirectionalLightCGL
2020-04-23 - cables
Ops.Admin.ShadowDirectionalLightCGL renamed to Ops.Gl.Phong.DirectionalLight_v5
2020-07-29 - pandur