cables is under heavy development.
There might be one or another bug, please let us know about it!

SpotLight_v5 Op



spot light that emits a cone of light

The spot light basically is a point light, with the difference that you can set an angle to control where the light gets cut off.


Trigger In (Trigger)

Trigger input

Light Attributes

Cast Light (boolean /Number)
Intensity (Number)

intensity of the spotlight

Radius (Number)

effective radius of the spot light


X (Number)

X position of the light

Y (Number)

Y position of the light

Z (Number)

Z position of the light

Point At

Point At X (Number)

where the light points at X

Point At Y (Number)

where the light points at Y

Point At Z (Number)

where the light points at Z


R (Number)

diffuse color channel R

G (Number)

diffuse color channel G

B (Number)

diffuse color channel B

Specular Color

Specular R (Number)

specular color channel R

Specular G (Number)

specular color channel G

Specular B (Number)

specular color channel B

Cone Attributes

Cone Angle (Number)

outter cone angle of the spot light, this parameter affects the camera of the shadow mapping

Inner Cone Angle (Number)

inner cone angle (soft area) of the spot light's cutoff

Spot Exponent (Number)

appearance of the spot light

Falloff (Number)

falloff in respect to effective radius

Cast Shadow (boolean /Number)

if activated, light will generate a shadow map to be used with the shadow material extension

Shadow Map Settings

Rendering Active (boolean /Number)
Map Size index (integer /Number)

index of the map size

Shadow Map Settings

Map Size (String)

the size of the generated shadow map, possible values: 256, 512, 1024, 2048

Shadow Strength (Number)

strength of the shadows

Near (Number)

the near value of the shadow camera's frustum

Far (Number)

the far value of the shadow camera's frustum

Bias (Number)

biasing for the shadow comparison, refer to the shadow op for an in depth explanation

Polygon Offset (integer /Number)

polygon offset for the shadow map rendering, refer to the shadow op for an in depth explanation

Normal Offset (Number)

normal offset for the shadow map rendering, refer to the shadow op for an in depth explanation

Blur Amount (Number)

blur factor for the variance shadow algorithm, refer to the shadow op for an in depth explanation

Advanced Options

Enable Advanced (boolean /Number)
MSAA index (integer /Number)

Advanced Options

MSAA (String)

MSAA factor

Texture Filter index (integer /Number)

Advanced Options

Texture Filter (String)

texture filter type

Anisotropic index (integer /Number)

Advanced Options

Anisotropic (String)

anisotropic factor


Trigger Out (Trigger)

trigger output

Shadow Map (Object)

generated shadow map output

World Position X (Number)
World Position Y (Number)
World Position Z (Number)
Caught a mistake or want to contribute to the documentation?

Edit Documentation 

SpotLight - example

Spot light example patch.

Open Example In Editor

Patches using SpotLight_v5


Ops.User.cables.ShadowSpotTestLightCGL renamed to Ops.Admin.ShadowSpotLightCGL
2020-04-23 - cables
added core lib: vargetset
2020-05-20 - stephan
added core lib: cgl_functions
2020-05-26 - stephan
Ops.Admin.ShadowSpotLightCGL renamed to Ops.Gl.Phong.SpotLight_v5
2020-07-29 - pandur