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,11 @@
#include "common.hlsli"
#define EPS (0.9f / 255.f)
float4 main(p_screen I) : COLOR
{
// Sample the fat framebuffer:
float4 NH = tex2D(s_normal, I.tc0);
float L = dot(Ldynamic_dir, (float3)NH) + EPS; // Use hemisphere as approximation of max light
return float4(L, L, L, L);
}