fix: enable back-face culling — removes self-shadowing artifacts
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
This commit is contained in:
Binary file not shown.
Reference in New Issue
Block a user