Garry's Mod Wiki

DImage:FixVertexLitMaterial

DImage:FixVertexLitMaterial()

Description

This is used internally - although you're able to use it you probably 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.

Page Links


Special Pages


Wikis

?

Render Time: 68ms

DB GetPage 42
Generate Html 1
SaveChanges (1) 10
Render Body 0
Render Sidebar 12