Garry's Mod Wiki
Description
Sets the render material override for all next calls of Entity:DrawModel. Also overrides render.MaterialOverrideByIndex.
See render.WorldMaterialOverride, render.BrushMaterialOverride and render.ModelMaterialOverride for similar functions.
In certain scenarios such as during entity's shadow pass, using this function can cause unexpected side effects. See example below on how to deal with this.
Arguments
Example
Deal with shadow passes during entity rendering. This usually only applies to opaque renders (so not to ENT:DrawTranslucent).
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...