d3d_antialias
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
video resolution.
Range:
0 - No antialiasing (default).
1 - Full scene antialiasing in 3D card default
mode.
4 - Full scene antialiasing with 4 samples per pixel.
9 - Full scene antialiasing with 9 samples
per pixel.
Type:
var
Remarks:
- 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
disabled.
- If the antialiasing mode is not supported by the video device,
the next-lower mode is selected.
-
A7.08
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.
Edition:
A7
C
P
Example:
void main()
{
d3d_antialias = 1; // activate scene antialiasing
...
See also:
video_switch, video_mode, d3d_lockable
► latest
version online