PXC Documentation

PXC Home

Cast Shadow

pre 1.18

Apply light that create shadow using shadow mask.



Node Data

FilterArray

Display name

Cast Shadow

Internal name

Node_Shadow_Cast

Inheritances

node
node_processor
node_shadow_cast

Inputs

node_shadow_cast

surface

Background

surface

Solid

vec2

Light Position

float

Soft Light Radius

int

Light Density

enum

Light Type

color

Ambient Color

color

Light Color

float

Light Radius

bool

Render Solid

bool

Use Bg Color

float

Bg Threshold

float

Light Intensity

int

Banding

enum

Attenuation

int

Ambient Occlusion

float

Ambient Occlusion Strength

bool

Active

Outputs

node_shadow_cast

surface

Surface Out

surface

Light Mask

Cast shadow node use raycast to render shadow from different type of light.




Surfaces Properties


Use Bg Color


Toggle this to use Background as shadow caster.


Bg Threshold


The brightness threshold to consider a pixel in Background as a wall.



Light Properties


Cast shadow requires 2 surfaces. A base Background surface and Solid surface act as a shadow caster.

You can check Use Bg Color to use Background for both background and shadow caster.


Light Type


Type of light:



Light Intensity


The brightness of the light.


Light Radius


Point type, radius of the light.


Light Position


Position of the light, for Sun type, the position determine the light direction.



Soft Shadow Properties


Light Density


Amount of lights used to render soft shadow.


Soft Light Radius


Radius for the ligths cluster, larger radius will increase the width of the soft shadow.



Render Properties


Banding


Discretize light intensity to a number of steps.


Attenuation


Point type, a curve controling how the light got dimmer per distance.


Light Color


Color of the light


Ambient Color


Base ambient color


Render Solid


Whether to draw Solid in the final render.



Ambient Occlusion Properties


Ambient Occlusion


Size of the AO effects.


Ambient Occlusion Strength


Intensity, darkness of the effect.