CreatePointLight

Description

Creates a point light that shines equally in all directions. This affects all objects using the default internal shader with SetObjectLightMode set to 1. If you are using a custom shader then AGK will add lighting functions to your shader during loading if you reference them, see the guide to shaders for more information on this. By default, lights are created in vertex mode, this is faster than pixel mode but lower quality. To change this use SetPointLightMode. Color values should be in the range 0-255 but are not limited to it. Values greater than 255 will over saturate things and values less than 0 will take light away.

Definition

CreatePointLight( lightID, x, y, z, radius, red, green, blue )

Parameters