SpotLight_v5 Op

SpotLight

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.


Edit Documentation

Full Name
  • Ops.Gl.Phong.SpotLight_v5
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorTest Patches


 

Example Patch SpotLight - example

Spot light example patch.

Open In Editor

INPUT PORTS


Trigger In (Trigger)

Trigger input

Light Attributes

Cast Light (Number:boolean )
Intensity (Number)

intensity of the spotlight

Radius (Number)

effective radius of the spot light

Position

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

Color

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 (Number:boolean )

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

Shadow Map Settings

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

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 (Number:integer )

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 (Number:boolean )
MSAA index (Number:integer )

Advanced Options

MSAA (String)

MSAA factor

Texture Filter index (Number:integer )

Advanced Options

Texture Filter (String)

texture filter type

Anisotropic index (Number:integer )

Advanced Options

Anisotropic (String)

anisotropic factor

OUTPUT PORTS


Trigger Out (Trigger)

trigger output

Shadow Map (Object)

generated shadow map output

World Position X (Number)
World Position Y (Number)
World Position Z (Number)

Patches using SpotLight_v5

  • Examples
  • Public
  • My Patches

Changelog


Ops.User.cables.ShadowSpotTestLightCGL renamed to Ops.Admin.ShadowSpotLightCGLuser avatarcables - 2020-04-23 17:02
added core lib: vargetsetuser avatarstephan - 2020-05-20 12:02
added core lib: cgl_functionsuser avatarstephan - 2020-05-26 14:18
Ops.Admin.ShadowSpotLightCGL renamed to Ops.Gl.Phong.SpotLight_v5user avatarpandur - 2020-07-29 22:49