mirror of
https://github.com/muskit/H3VR-TNH-Quality-of-Life-Improvements.git
synced 2026-06-03 04:34:26 -07:00
Initial commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// Alloy Physical Shader Framework
|
||||
// Copyright 2013-2017 RUST LLC.
|
||||
// http://www.alloy.rustltd.com/
|
||||
|
||||
Shader "Hidden/AlloyNormalBlit" {
|
||||
Properties {
|
||||
_MainTex ("Render Input", 2D) = "white" {}
|
||||
}
|
||||
SubShader {
|
||||
ZTest Always Cull Off ZWrite Off Fog { Mode Off }
|
||||
Pass {
|
||||
CGPROGRAM
|
||||
#pragma vertex vert_img
|
||||
#pragma fragment frag
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
sampler2D _MainTex;
|
||||
float _EditorIsLinear;
|
||||
|
||||
float4 frag(v2f_img IN) : SV_Target {
|
||||
half3 n = UnpackNormal(tex2D (_MainTex, IN.uv));
|
||||
half4 col = half4((n.x + 1.0f) / 2.0f, (n.y + 1.0f) / 2.0f, (n.z + 1.0f) / 2.0f, 1.0f);
|
||||
return col;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user