MikkTSpace icon indicating copy to clipboard operation
MikkTSpace copied to clipboard

A common standard for tangent space used in baking tools to produce normal maps.

Results 6 MikkTSpace issues
Sort by recently updated
recently updated
newest added

Hello, I noticed that there seems to be a couple of off by one errors in the edge sorting code. The condition checks [here](https://github.com/mmikk/MikkTSpace/blob/3e895b49d05ea07e4c2133156cfa94369e19e409/mikktspace.c#L1524) and [here](https://github.com/mmikk/MikkTSpace/blob/3e895b49d05ea07e4c2133156cfa94369e19e409/mikktspace.c#L1540) need to be `

This should provide no change in behaviour but calms [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html). The branch should (hopefully) be optimized away by any modern compiler.

Thanks for making your library open source. I'm looking to package it for Fedora, and its recommended that packages include a separate file which has the license text. The project...

Is it a fair expectation that generated tangents should be different for normals? Is there something I need to do to make it so? I needed tangents for anisotropic light...

I was studying the code and noticed that the `IndexListSlow` generation code didn't work as expected. The index being used to compare was never recorded and as such the index...

```C // Random t=uSeed&31; t=(uSeed(32-t)); ``` When `t` is `0` after `t=uSeed&31`, UBSAN says `runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'`