Revision Difference
render.ModelMaterialOverride#565370
<function name="ModelMaterialOverride" parent="render" type="libraryfunc">
<description>
Forces all future draw operations to use a specific <page>IMaterial</page>.
Because this is independent of a specific <page>Entity</page>, it can be used to change materials on static models that are part of maps.
</description>
<realm>Client</realm>
<args>
<arg name="material" type="IMaterial">⤶
<arg name="material" type="IMaterial|nil">⤶
The <page>IMaterial</page> that will be used for all upcoming draw operations, or `nil` to stop overriding.
</arg>
</args>
</function>