diff options
| author | yum <yum.food.vr@gmail.com> | 2025-10-12 21:52:50 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-10-12 21:52:50 -0700 |
| commit | 228e555dbd07dd1a332a07770106dfd98f918c9b (patch) | |
| tree | 8f058e1c897ba818dedc2564676f0278eddce128 /3ner.cginc | |
| parent | a4bf31470f7e2855f13d922e3e7ad1c7767d9afd (diff) | |
fornite update
Diffstat (limited to '3ner.cginc')
| -rw-r--r-- | 3ner.cginc | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -28,14 +28,14 @@ v2f vert(appdata v) { #endif o.uv0 = v.uv0; o.objPos = v.vertex; -#if defined(_CUSTOM31_FRAGMENT_NORMALS) || defined(_CUSTOM31_TESSELLATION) +#if defined(_VERTEX_DEFORMATION_FRAGMENT_NORMALS) || defined(_VERTEX_DEFORMATION_TESSELLATION) o.objPos_orig = v.vertex; #endif // Normal and tangent are in object space. o.normal = v.normal; o.tangent = v.tangent; -#if !defined(_CUSTOM31_FRAGMENT_NORMALS) +#if !defined(_VERTEX_DEFORMATION_FRAGMENT_NORMALS) deform_normal(o.objPos, o.normal.xyz, o.tangent.xyz); #endif deform(o.objPos); @@ -158,7 +158,7 @@ v2f domain( o.objPos = DOMAIN_INTERP(objPos); #endif -#if defined(_CUSTOM31_FRAGMENT_NORMALS) || defined(_CUSTOM31_TESSELLATION) +#if defined(_VERTEX_DEFORMATION_FRAGMENT_NORMALS) || defined(_VERTEX_DEFORMATION_TESSELLATION) o.objPos_orig = DOMAIN_INTERP(objPos_orig); o.objPos = o.objPos_orig; deform(o.objPos); @@ -189,7 +189,7 @@ void geom(triangle v2f tri_in[3], float3 n0 = v0.normal; float3 n1 = v1.normal; float3 n2 = v2.normal; -#if defined(_CUSTOM31_FRAGMENT_NORMALS) || defined(_CUSTOM31_TESSELLATION) +#if defined(_VERTEX_DEFORMATION_FRAGMENT_NORMALS) || defined(_VERTEX_DEFORMATION_TESSELLATION) float3 tmp; deform_normal(v0.objPos_orig, n0, tmp); deform_normal(v1.objPos_orig, n1, tmp); @@ -218,11 +218,11 @@ void geom(triangle v2f tri_in[3], //endex float4 frag(v2f i, uint facing : SV_IsFrontFace -#if defined(_CUSTOM31_TUBES) +#if defined(_VERTEX_DEFORMATION_TUBES) , out float depth : SV_DepthLessEqual #endif ) : SV_Target { -#if defined(_CUSTOM31_FRAGMENT_NORMALS) +#if defined(_VERTEX_DEFORMATION_FRAGMENT_NORMALS) deform_normal(i.objPos_orig, i.normal, i.tangent.xyz); #endif |
