Spot light shader action

A Coppecube shader action to convert any specified node into a spot light with bunch of lighting options also need a target node.
Check the accordion below to see the usage info or watch the video below.

Light strength multiplier

Ability to increase or decrease spot light brightness.

Spot size

Ability to change the size of spot (light radius).

 Specular lighting

Ability to change specular texture, specularity strength, and specular color.


   Attach this action to a behavior event and then specify a scenenode in "Light_source" which will act as
   source for our spot light, specify a "Target_source" which will be used as target to control the light
   direction, specify an "Affecting_node" which will get affected by the light created by this shader. Specify
   additional light properties like light color, diffuse color, ambient color, specular color and specular
   texture, if specular lighting is turned on.

   You can adjust the strength of light and specularity using the provided parameters. Check if you want to
   affect all the materials of the "Affecting node" or you can uncheck it and can specify specific material
   index (for example zero "1" if you want to affect first material of the node only). You can also specify a
   "Base_material_type" to blend the shader with other material type for example (12 if you want to use
   tranparent_add as base material type). Not all the materials blend with the shader, only a few can be
   blended with shaders.

   Specular textures can be supplied using either irredit/irrlicht properties or by specifying an external
   texture name which resides in the same directory as of your game/project. To make the spot light work
   correctly don't make the target position too far away from the light source.


   Debugging window of the game/app can throw an error failed to load a texture if specular lighting is
   OFF (it is not a error or bug neither it affect the game) this is used to turn ON/OFF Specular lighting.
   You can ignore the error in debugging window.

Advertisement

Spot light and point light shader usage video

Advertisement


This extension/plugin is free to download. If you want you can support my work using the buy me a coffee button up there.


About

Neophyte is a website developed to provide tutorials, assets and source files of CopperCube projects.

Join Us