Garry's Mod Wiki

DImage:FixVertexLitMaterial

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.

Special Pages


Wikis

?

Render Time: 53ms

DB GetPage 32
Generate Html 2
SaveChanges (1) 7
Render Body 0
Render Sidebar 10