twn_rendering: have triangle uvs represented by floating vectors
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user