From Garry's Mod
Jump to: navigation, search
 DImage:FixVertexLitMaterial( )


This is an internal function or feature.
This means you will be able to use it, but you really shouldn't.

"Fixes" the current material of the DImage if it has VertexLit shader by creating a new one with the same name and a prefix of "_DImage" and automatically calling DImage:SetMaterial with the new material.

This fixes the problem where using materials using shaders that expect lighting information causing "weird" flickering when displayed in 2D/Unlit environment.

Personal tools