diff options
| author | yum <yum.food.vr@gmail.com> | 2025-08-07 18:59:23 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-08-07 18:59:23 -0700 |
| commit | 8c6e9be61b2a7b1c5b9e5b61252090a4e2432ce2 (patch) | |
| tree | ad8af761b02f9a37eeafe0ef3ad0324a418447d2 /3ner.cginc | |
| parent | 7fe9d7357ef5788745200012205954b9a484a3ed (diff) | |
add base color, normal, and metallic gloss textures
Diffstat (limited to '3ner.cginc')
| -rw-r--r-- | 3ner.cginc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -163,6 +163,8 @@ v2f domain( float4 frag(v2f i, uint facing : SV_IsFrontFace) : SV_Target { i.normal *= facing ? 1 : -1; + i.normal = normalize(i.normal); + i.tangent.xyz = normalize(i.tangent.xyz); Pbr pbr = getPbr(i); LightData light_data; GetLighting(i, pbr, light_data); |
