Garry's Mod Wiki
Description
Sets the alpha blending (or transparency) for upcoming render operations.
See render.SetColorModulation for the function to affect RGB color channels.
By itself, this will cause visible overlapping on parts of a model that are in front of other parts of the same model.
For a solution to this, see the examples below.
0.7
.Arguments
A value in the range
(0-1)
where 0
is fully transparent, 0.5
is 50% visible, and 1
is fully opaque.Example: Basic Usage (With overlaps)
This example demonstrates the basic usage of render.SetBlend and the overlapping effect mentioned above.

Example: Avoiding Overlap Issues
This example demonstrates how the overlapping effect can be avoided with the use of render.OverrideColorWriteEnable

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...