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 views: 5,238
Updated: A Long Time Ago
Updated: A Long Time Ago