Directional Light
Create directional light directed at the origin point.
Node Data | |
---|---|
3DArray | |
Display name | |
Directional Light | |
Internal name | |
Node_3D_Light_Directional | |
Inheritances | |
node | |
node_processor | |
node_3d | |
node_3d_object | |
node_3d_light | |
node_3d_light_directional | |
Inputs | |
node_3d_object | |
vec3 |
Position |
quaternion |
Rotation |
vec3 |
Scale |
vec3 |
Anchor |
node_3d_light | |
bool |
Active |
color |
Color |
float |
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.