twn_rendering: have triangle uvs represented by floating vectors

This commit is contained in:
2024-10-01 20:52:19 +03:00
parent ba70a566e1
commit 0dc3cf4160
3 changed files with 17 additions and 17 deletions

View File

@ -15,8 +15,8 @@ typedef struct PushSpriteArgs {
Rect rect;
m_option_list(
Rect, texture_region,
Color, color,
Rect, texture_region,
Color, color,
float, rotation,
bool, flip_x,
bool, flip_y,
@ -45,9 +45,9 @@ TWN_API void unfurl_triangle(const char *path,
Vec3 v0,
Vec3 v1,
Vec3 v2,
Vec2sh uv0,
Vec2sh uv1,
Vec2sh uv2);
Vec2 uv0,
Vec2 uv1,
Vec2 uv2);
// TODO: decide whether it's needed to begin with?
// intended usage for it is baked lighting, i would think.