PXC Documentation

PXC Home

2D Light

pre 1.18

Apply different shaped light on the image.

Node Data

Display name

2D Light

Internal name

Node_2D_light

Inheritances

Node_Processor
Node_2D_light

Inputs

Node_2D_light

surface

Surface In

Dynamic Inputs

active

enum

Light Shape

vec2

Position

float

Range

vec2

Start

vec2

Finish

islider

Sweep

islider

Sweep End

int

Sweep Soft

float

Sweep Spread

float

Radius X

float

Radius Y

rotation

Rotation

bool

Two Sides

float

Thickness

slider

Intensity

color

Color

islider

Radial Banding

rotation

Radial Start

slider

Radial Band Ratio

enum

Attenuation

curve

Attencurve

islider

Banding

float

Exponent

bool

Anti Aliasing

Outputs

Node_2D_light

surface

Surface Out

surface

Light Only

Attributes

Color Depth

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.




Related Links