# SetObjectScreenCulling

## Description

Sets whether the object will be culled when it moves off screen. By default AGK will attempt to detect when an object has moved off screen, and objects that are no longer on screen will no longer be sent to the render pipeline. If the vertex shader modifies the vertices from their normal positions then this should be turned off as AGK can't know in advance where the object will be drawn.

## Definition

SetObjectScreenCulling( objID, mode )

void agk::SetObjectScreenCulling( UINT objID, int mode )

## Parameters

- objID - The ID of the object to modify.
- mode - 0 to turn off screen culling, 1 to turn it on (default).