Scripting/Squirrel/Functions/SetBackfaceCullingDisabled

From Vice City Multiplayer
Revision as of 19:07, 2 April 2018 by NicusorN5 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This function will enable/disable backface culling. Vice City enables it by default (the function, not the backface culling itself), that's why some objects around the map are not visible from all view angles because objects are made of polygons that are separated in triangles and they are rendered in some angle. To better understand what it is supposed to do, try to disable it in your server.

Syntax

SetBackfaceCullingDisabled( bool )

Arguments

  • bool toggle - true or false.

Example

function onScriptLoad()
{
    SetBackfaceCullingDisabled( true );
}

Notes

Call onScriptLoad was used in this example.


Related Functions