Home / Forums / Flat vs Textured Chams: Material Property Overrides in Unity

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Tutorial

Flat vs Textured Chams: Material Property Overrides in Unity

ShadowPwn
Security Researcher
MEMBER
Rep: 150
Join Date: Feb 2024
Posts: 19
Thanks: 35
3y ago · Jun 16, 2023 1:55 PM
#1
Techniques for overriding material shader properties in Unity to render solid silhouette chams.
ShadowPwn · Security & Anticheat Analysis
The following users thanked ShadowPwn for this post:
MatrixRecon
3D Math & Vectors
MEMBER
Rep: 225
Join Date: Jan 2025
Posts: 33
Thanks: 55
3y ago · Jun 16, 2023 3:07 PM
#2
Setting _Color or _EmissionColor on an unlit shader with depth testing set to Always renders clean solid player models through walls.
MatrixRecon · 3D Mathematics & View Matrix Calculations
VMT_Hooker
VMT / Detours Engineer
VIP
Rep: 310
Join Date: Mar 2023
Posts: 22
Thanks: 80
3y ago · Jun 17, 2023 9:07 PM
#3
Creating material instances via new Material(Shader.Find("Hidden/Internal-Colored")) prevents modifying shared project assets permanently.
VMT_Hooker - Virtual method table swapping made easy