PointLight


This object allows you to add colored point lights to your projects.

If the light is linked to an object in the Object List, the object will become the light parent. Run-time, when the parent moves and rotates, the PointLight will follow it, keeping it's relative position as you set it in the Virtual Editor.

IMPORTANT: like other special rendering effects, point lights will only affect SkinMesh objects in the scene.

They may also illuminate other object types (like a non-SkinMesh-based terrain) but this isn't always guaranteed.

Note that each SkinMesh object can be illuminated by no more than 4 lights simultaneously. If more PointLights are within range, their light will not affect the SkinMesh surface.

Also note that point lights don't currently support volumetric shadows.



Light color & range. Click the color button to open the color picker. The bigger the range factor, the longer the distance reached by the point light.

IMPORTANT: point lights with a small range may fail to illuminate surfaces that are made of big polygons, like for example a terrain.

For information about the remaining controls, please click here.



INTERNAL PARAMETERS


The following internal parameters can be accessed by using event objects like EventOnValue or Script:

  • Red component, between 0 and 1
  • Green component, between 0 and 1
  • Blue component, between 0 and 1