Sets the scene antialiasing mode.
Antialiasing blurs the edges of polygons as they are rendered,
makes them to appear smoother and gives the impression of a higher
0 - No antialiasing (default).
1 - Full scene antialiasing in 3D card default
4 - Full scene antialiasing with 4 samples per pixel.
9 - Full scene antialiasing with 9 samples
- Antialiasing affects only triangles and groups
of triangles. Lines can not be antialiased. Full-scene
antialiasing is done by using multisampling on each pixel, and then generating
the resulting pixel by blending the different samples.
- Full scene antialiasing requires that d3d_lockable is
- If the antialiasing mode is not supported by the video device,
the next-lower mode is selected.
Scene antialiasing does not work on render targets. For this reason a render target z buffer in the initial size of the screen buffer is automatically created when this variable is set.
- In C-Script this variable can not be directly set, but must be redefined
at the beginning of the script. LC In
lite-C this variable must be set
in the first frame before any level_load()
or wait() call.
d3d_antialias = 1; // activate scene antialiasing
video_switch, video_mode, d3d_lockable