ed919edb0ac5c8eebd77d58176920a5e07d7bf24
Root cause: CULL_MODE_NONE in both main and shadow pipelines caused back faces to render, creating self-shadowing acne on all objects: - Shadow map: back faces written at closer depth → false shadows on front - Main render: back faces visible through objects → wrong lighting Fix: - Main pipeline: CULL_MODE_BACK (was None) — only front faces render - Shadow pipeline: CULL_MODE_BACK (was None) — only front faces cast shadows - Removed normal flip hack (if dot(N,V) < 0 N = -N) — no longer needed with proper culling + correct CCW winding in cube.obj - This is the standard approach: correct geometry + back-face culling
Description
AI powered Game Engine
23 MiB
Languages
C#
97.8%
GLSL
1.8%
Shell
0.2%
PowerShell
0.2%