From b137596b4781cdbf6c5f53e864bec972acaffbc0 Mon Sep 17 00:00:00 2001 From: ahbejarano Date: Sat, 15 Jun 2024 08:31:42 +0200 Subject: [PATCH] Close #15 --- chapter-15/resources/shaders/scene.vert | 2 +- chapter-16/resources/shaders/scene.vert | 2 +- chapter-17/resources/shaders/scene.vert | 2 +- chapter-18/resources/shaders/scene.vert | 2 +- chapter-19/resources/shaders/scene.vert | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/chapter-15/resources/shaders/scene.vert b/chapter-15/resources/shaders/scene.vert index 4fbf3c8..16fdd02 100644 --- a/chapter-15/resources/shaders/scene.vert +++ b/chapter-15/resources/shaders/scene.vert @@ -45,7 +45,7 @@ void main() initTangent += weight * tmpTangent; vec4 tmpBitangent = bonesMatrices[boneIndex] * vec4(bitangent, 0.0); - initTangent += weight * tmpBitangent; + initBitangent += weight * tmpBitangent; } } if (count == 0) { diff --git a/chapter-16/resources/shaders/scene.vert b/chapter-16/resources/shaders/scene.vert index 4fbf3c8..16fdd02 100644 --- a/chapter-16/resources/shaders/scene.vert +++ b/chapter-16/resources/shaders/scene.vert @@ -45,7 +45,7 @@ void main() initTangent += weight * tmpTangent; vec4 tmpBitangent = bonesMatrices[boneIndex] * vec4(bitangent, 0.0); - initTangent += weight * tmpBitangent; + initBitangent += weight * tmpBitangent; } } if (count == 0) { diff --git a/chapter-17/resources/shaders/scene.vert b/chapter-17/resources/shaders/scene.vert index 63f6f93..f5f8179 100644 --- a/chapter-17/resources/shaders/scene.vert +++ b/chapter-17/resources/shaders/scene.vert @@ -46,7 +46,7 @@ void main() initTangent += weight * tmpTangent; vec4 tmpBitangent = bonesMatrices[boneIndex] * vec4(bitangent, 0.0); - initTangent += weight * tmpBitangent; + initBitangent += weight * tmpBitangent; } } if (count == 0) { diff --git a/chapter-18/resources/shaders/scene.vert b/chapter-18/resources/shaders/scene.vert index 63f6f93..f5f8179 100644 --- a/chapter-18/resources/shaders/scene.vert +++ b/chapter-18/resources/shaders/scene.vert @@ -46,7 +46,7 @@ void main() initTangent += weight * tmpTangent; vec4 tmpBitangent = bonesMatrices[boneIndex] * vec4(bitangent, 0.0); - initTangent += weight * tmpBitangent; + initBitangent += weight * tmpBitangent; } } if (count == 0) { diff --git a/chapter-19/resources/shaders/scene.vert b/chapter-19/resources/shaders/scene.vert index 0023449..b52bb36 100644 --- a/chapter-19/resources/shaders/scene.vert +++ b/chapter-19/resources/shaders/scene.vert @@ -46,7 +46,7 @@ void main() initTangent += weight * tmpTangent; vec4 tmpBitangent = bonesMatrices[boneIndex] * vec4(bitangent, 0.0); - initTangent += weight * tmpBitangent; + initBitangent += weight * tmpBitangent; } } if (count == 0) {