PXC Documentation

PXC Home

Directional Light

pre 1.18

Create directional light directed at the origin point.

Node Data

Display name

Directional Light

Internal name

Node_3D_Light_Directional

Inheritances

Node_3D
Node_3D_Object
Node_3D_Light
Node_3D_Light_Directional

Inputs

Node_3D_Object

vec3

Position

vec3

Anchor

quaternion

Rotation

vec3

Scale

Node_3D_Light

color

Color

slider

Intensity

Node_3D_Light_Directional

bool

Cast Shadow

int

Shadow Map Size

int

Shadow Map Scale

float

Shadow Bias

Outputs

Node_3D_Light

d3light

Light


Directional light is a light that projected from far way to each verticies equally. Imagine sunlight that cast perfectly parallel rays to the ground.




Positioning


Directional light will always point to the origin (0, 0, 0), thus, its direction is controlled by the position.



Shadow


Selecting "Cast Shadow" will make the light cast shadow with solid objects. Note that shadow does not works with transparent and translucent objects.


Shadow Map Size and Scale are used to control shadow quality. Shadow Bias can be used to fix glitch with light bleed around the shadow edges.



Related Links