# SetPointLightMode

## Description

Sets the point light to vertex or pixel mode. Vertex mode is faster but pixel mode has better quality. By default lights are created in vertex mode. A mesh can be lit by up to 8 vertex lights and 4 pixel lights at a time, if you add more lights than this then the closest lights will be used by the mesh.

## Definition

SetPointLightMode( lightID, mode )

void agk::SetPointLightMode( UINT lightID, int mode )

## Parameters

- lightID - The ID of the light to modify.
- mode - 0 for vertex, 1 for pixel mode.