From 23e335d93355a948adeb8d10ee6277939aaab43e Mon Sep 17 00:00:00 2001 From: raysan5 Date: Mon, 30 Apr 2018 02:47:48 +0200 Subject: Implemented MeshTangents() - Added Vector3OrthoNormalize() to raymath.h - not sure if it is correct - Implemented MeshBinormals() - Mesh struct has not a place for them... - Updated model_material_pbr example - tested but not working on my GPU (old Intel HD), actually, it never worked on it... --- examples/models/models_material_pbr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'examples') diff --git a/examples/models/models_material_pbr.c b/examples/models/models_material_pbr.c index 4ad2c9e7..ee13fddf 100644 --- a/examples/models/models_material_pbr.c +++ b/examples/models/models_material_pbr.c @@ -38,6 +38,7 @@ int main() // Load model and PBR material Model model = LoadModel("resources/pbr/trooper.obj"); + MeshTangents(&model.mesh); model.material = LoadMaterialPBR((Color){ 255, 255, 255, 255 }, 1.0f, 1.0f); // Define lights attributes -- cgit v1.2.3