Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wrapperup/odin-mikktspace
Port of Morten S. Mikkelsen's tangent space algorithm in Odin
https://github.com/wrapperup/odin-mikktspace
Last synced: 19 days ago
JSON representation
Port of Morten S. Mikkelsen's tangent space algorithm in Odin
- Host: GitHub
- URL: https://github.com/wrapperup/odin-mikktspace
- Owner: wrapperup
- License: other
- Created: 2024-11-14T03:27:35.000Z (30 days ago)
- Default Branch: main
- Last Pushed: 2024-11-21T22:59:32.000Z (22 days ago)
- Last Synced: 2024-11-21T23:28:49.756Z (22 days ago)
- Language: Odin
- Size: 20.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-odin - mikktspace - mikktspace/blob/main/LICENSE) | Gamedev, Graphics, 3D (Libraries / Gamedev)
- awesome-odin - mikktspace - mikktspace/blob/main/LICENSE) | Gamedev, Graphics, 3D (Libraries / Gamedev)
README
# Odin MikkTSpace
Port of [Morten S. Mikkelsen's Tangent Space algorithm](https://github.com/mmikk/MikkTSpace) in Odin.
## Usage
```odin
import mikk "mikktspace"mesh_data := ...
interface := mikk.Interface {
get_num_faces = get_num_faces,
get_num_vertices_of_face = get_num_vertices_of_face,
get_position = get_position,
get_normal = get_normal,
get_tex_coord = get_tex_coord,
set_t_space_basic = set_t_space_basic,
}ctx := mikk.Context {
interface = &interface,
user_data = &mesh_data,
}ok := mikk.generate_tangents(&ctx)
```[Full example can be found here](example/example.odin)
## License
[zlib License](LICENSE)