top of page
Eliza (Yongzi) Ye
Tech Art | 3D Art
Lighting Model Shader
Unity Shaderlab/HLSL/CG
This is an art-directable lighting model that combines the necessary light source in a traditional standardized lighting model, which also adds features that allow artists to pick the environment light and direct light colors.
Direct Light: Lambert + Phong + Unity shadow
Ambient Light: Ambient Occlusion + 3 Different Ambient Light
![]() | ![]() | ![]() |
---|---|---|
![]() | ![]() | ![]() |
Different Results
Direct Light Section
-
BaseColor
-
Light Color
-
Specular Power
-
Shadow (Unity Default Shadow)
Ambient Light Section
-
Environment Light Intensity
-
Environment Top Color
-
Environment Middle Color
-
Environment Bottom Color
-
Ambient Light Occlusion (AO map)
+

Vertex & Fragment Shader


Updated Ver: Adding Ambient Cube Map and Fresnel
New Added Section
-
Fresnel (n dot v)
-
Cubemap (Cubemap texture sampling + Cubemap Mip according to glossiness)
-
Emission Color and Intensity
-
Texture Sampling
Properties Panel and Updated Codes



bottom of page