This commit is contained in:
Vasily Petrov 2026-06-18 01:18:29 +03:00
commit 2fe6ca2f65
1473 changed files with 251771 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#include "common.hlsli"
struct v2p
{
float2 tc : TEXCOORD0; // base & distort
};
// uniform sampler2D s_base;
uniform sampler2D s_distort;
// Pixel
float4 main(v2p I) : COLOR
{
float2 distort = tex2D(s_distort, I.tc);
float2 offset = (distort.xy - 0.5f) * def_distort;
float3 image = tex2D(s_base, I.tc + offset);
// out
return float4(image, 1.0f); // +mov
}