MTA:Eir/functions/setWorldDualAlphaRenderingEnabled: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ 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...") |
(No difference)
|
Latest revision as of 09:36, 11 December 2013
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 [-]
ClientThis snippet should fix many annoying alpha issues on the main GTA:SA world.
setWorldDualAlphaRenderingEnabled( true );