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.


Full Name
  • Ops.Gl.Phong.SpotLight_v5
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest 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)
Shadow Strength (Number)

strength of the shadows

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