Skip to content

[CHAPTER 15] typo in scene.vert initTangent set twice, second time should be initBitangent #15

@wierdest

Description

@wierdest

This is the code for the scene.vert in the chapter 15:

            vec4 tmpTangent = bonesMatrices[boneIndex] * vec4(tangent, 0.0);
            initTangent += weight * tmpTangent;

            vec4 tmpBitangent = bonesMatrices[boneIndex] * vec4(bitangent, 0.0);
            initTangent += weight * tmpBitangent;  // this should be initBitangent += ... Right?

I believe the initTangent is being set twice, and it should be replacecd by initBitangent
...
Another question about the chapter (more a question than an issue, really):
has it been tested for animations in the gltf format?
I'm able to load the animation data, and logs for the nextFrame() calls return sucessfully, but the animation never plays.
Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions