PXC Documentation

PXC Home

2D Light

pre 1.18

Apply different shaped light on the image.



Node Data

FilterArray

Display name

2D Light

Internal name

Node_2D_light

Inheritances

node
node_processor
node_2d_light

Inputs

node_2d_light

surface

Surface In

Dynamic Inputs

enum

Light Shape

vec2

Center

float

Range

float

Intensity

color

Color

vec2

Start

vec2

Finish

int

Sweep

int

Sweep End

int

Banding

enum

Attenuation

int

Radial Banding

rotation

Radial Start

float

Radial Band Ratio

bool

Active

float

Radius X

float

Radius Y

rotation

Rotation

float

Exponent

bool

Anti Aliasing

bool

Two Sides

float

Thickness

Outputs

node_2d_light

surface

Surface Out

surface

Light Only

2D Light node draw a light on top of original surface. If you want the light to cast a shadow, check out Cast Shadow.



Light Properties


Light Shape


Control the shape of the light. There are 4 available shapes: Point, line, line asymmetric, and spot.



Range


The size of the light.


Intensity


The brightness of the light. Adjusting this amount may effect the resulting range.


Color


Control color of the light. Note that light use additive blending.


Attenuation


Control the falloff of the light. There are 3 available falloff: quadratic, invert quadratic and linear.



Banding


Banding convert smooth light to discrete steps. The banding width depends on the Attenuation.




Radial Properties


With point light, you can use Radial Banding to add the "shine" effect to the light.


Radial Banding


The amount of radials, set to 0 for a full circle.


Radial Start


Rotate the radial effect.


Radial Band Ratio


The width of the radial band as a ratio. 0 means no light and 1 mean fulll circle.