fix: add normal-based diffuse lighting so cube is visible as 3D

- Fragment shader: directional light dot(normal, lightDir) with 0.2 ambient
- Vertex shader: pass normal through mat3(model) to fragment
- Same-color faces now have different shading based on orientation
This commit is contained in:
emil28092005
2026-06-18 12:39:51 +03:00
parent d6bd1807cf
commit d6ca80c678
4 changed files with 6 additions and 1 deletions
Binary file not shown.