ADD: Normal mapping

This commit is contained in:
2025-11-01 17:32:14 +09:00
parent d5ff6263ee
commit fbc937974d
28 changed files with 2802 additions and 264 deletions

View File

@@ -24,3 +24,13 @@
- Confirm the `.spv` file changed (timestamp) and click “Reload Changed” in the Pipelines window.
- Ensure you are editing the correct files referenced by `shaderPath()`.
- GLSL error: `no such field in structure 'materialData': extra`
- Ensure `shaders/input_structures.glsl` defines `vec4 extra[14];` inside `GLTFMaterialData` to match C++ `MaterialConstants`.
- Normals look inverted when using normal maps
- The engine expects +Y (green up) tangent-space normals. Flip the green channel in your texture if needed.
- Tangent seams or artifacts
- Build with MikkTSpace enabled: `-DENABLE_MIKKTS=ON`.
- Check that your mesh has non-degenerate UVs.