# 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 dueing 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 )

void agk::CreatePointLight( UINT lightID, float x, float y, float z, float radius, int red, int green, int blue )

## Parameters

- lightID - The ID of the light to reference it in other commands.
- x - The X component of the light position.
- y - The Y component of the light position.
- z - The Z component of the light position.
- radius - The range that the light affects.
- red - The red component of the light color.
- green - The green component of the light color.
- blue - The blue component of the light color.