MTA:Eir/functions/setWorldDualAlphaRenderingEnabled

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This function modifies the rendering order, the rendering complexity and the render-states assigned to world entity rendering. If world dual alpha rendering is enabled, first all opaque pixels of entities are rendered and then the alpha pixels, depending on whether they are closer to the screen or not. Otherwise the original rendering method is used which does not use two-pass depth layer rendering.

By enabling world dual alpha rendering, rendering artifacts related to alpha such as seeing through solid surfaces are avoided. By default, it is disabled.

Syntax

bool setWorldDualAlphaRenderingEnabled ( bool enabled )

Returns

Returns true if enabled is passed as valid boolean, false otherwise.

Example

Click to collapse [-]
Client

This snippet should fix many annoying alpha issues on the main GTA:SA world.

setWorldDualAlphaRenderingEnabled( true );