Cleaned up and commented version.

This commit is contained in:
Thorbjoern
2025-10-02 00:07:11 +02:00
parent 2b86d9f0a2
commit 4c613c3436
66 changed files with 260 additions and 1020 deletions
@@ -0,0 +1,40 @@
Shader "Hidden/GazeOverlay"
{
SubShader
{
Tags { "RenderType" = "Opaque" "RenderPipeline" = "UniversalPipeline" }
pass
{
Name "GazeOverlayPass"
ZTest Always
ZWrite Off
Blend SrcAlpha OneMinusSrcAlpha
HLSLPROGRAM
#pragma vertex VertFullScreenTriangle
#pragma fragment frag
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
struct Varyings
{
float4 positionHCS : SV_POSITION;
float2 texcoord : TEXCOORD0;
};
Varyings VertFullScreenTriangle (uint vertexID : SV_VERTEXID)
{
Varyings o;
o.positionHCS = GetFullScreenTriangleVertexPosition(vertexID);
o.texcoord = GetFullScreenTriangleTexCoord(vertexID);
return o;
}
#include "GazeOverlayPass.hlsl"
ENDHLSL
}
}
FallBack Off
}