A CoppeCube Shader (Action) to convert any specified node into a Spot Light along with a target node to control direction of spot light with many lighting options..
• Light Color
• Diffuse Color
• Ambient Color
• Specular Color
• Specular Map (Texture)
• Specularity Strength
• Light Strength Multiplier
• Spot Size
Ability to allow changing of all material or a specific one. Ability to turn specular lighting ON and OFF, Ability to specify a base material type (for example Solid, Transparent etc).
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 using 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 exmaple (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 and 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 traget position too far away from the light source.
NOTE:- 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 use to turn ON/OFF Specular lighting. You can ignore the error in debugging window.
Installation instruction: Download .zip archive, extract its content (usually a .js file) to Your Documents\CopperCube\extensions on Windows or ~/Documents/CopperCube/extensions on Mac OS X, restart CopperCube.
This Extension/Plugin is Free to download, if you want you can also Donate via Paypal, to support my work to provide you more good tutorials and more Coppercube related stuff.