# SetObjectTransparency

## Description

Sets the transparency mode for this object, 0 is opaque, 1 is alpha blended, 2 is additive blended. Using transprency will slow down rendering, it also doesn't write transparent objects to the Z buffer so it might cause some depth ordering problems. There is an alternative form of transparency called Alpha Masking that is useful if you only need fully transparent or fully opaque pixels but no blending in between. See SetObjectAlphaMask for more details.

## Definition

SetObjectTransparency( objID, mode )

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

## Parameters

- objID - The ID of the object to modify.
- mode - The transparency mode to use for this object.