This commit is contained in:
2025-04-03 02:30:16 +08:00
parent 142adb61c6
commit bee7af1732
14907 changed files with 1009130 additions and 13 deletions

View File

@ -0,0 +1,22 @@
Shader "Hidden/TangentVertexDataNode"
{
SubShader
{
Pass
{
CGPROGRAM
#pragma vertex vert_img
#pragma fragment frag
#include "UnityCG.cginc"
#include "Preview.cginc"
float4 frag( v2f_img i ) : SV_Target
{
float3 normal = PreviewFragmentNormalOS( i.uv );
float3 tangent = normalize(float3( -normal.z, normal.y*0.01, normal.x ));
return float4((tangent), 1);
}
ENDCG
}
}
}