Init
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
Shader "Hidden/ACosOpNode"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_A ("_A", 2D) = "white" {}
|
||||
}
|
||||
SubShader
|
||||
{
|
||||
Pass
|
||||
{
|
||||
CGPROGRAM
|
||||
#include "UnityCG.cginc"
|
||||
#include "Preview.cginc"
|
||||
#pragma vertex vert_img
|
||||
#pragma fragment frag
|
||||
|
||||
sampler2D _A;
|
||||
|
||||
float4 frag(v2f_img i) : SV_Target
|
||||
{
|
||||
return acos(tex2D( _A, i.uv ));
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user