Garry's Mod Wiki

render.WorldMaterialOverride

  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: