Garry's Mod Wiki

Garry's Mod Wiki

  render.WorldMaterialOverride( IMaterial mat = nil )

Description

This function overrides all map materials for one frame.

Arguments

1 IMaterial mat = nil

Example

local X = Material( "CONCRETE/CONCRETEFLOOR026A" ) hook.Add( "RenderScene", "", function() render.WorldMaterialOverride( X ) end )
Output:

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...