fixed 0,1 coord issue. Going to test multiple vertex buffers now

This commit is contained in:
2019-09-10 22:04:13 -07:00
parent 9043c2cd3c
commit 5f2092ef21
6 changed files with 57 additions and 40 deletions

View File

@@ -40,12 +40,12 @@ impl Sprite {
position: position,
ti_position: [
(-1.0, -1.0), // top left
(-1.0, 1.0), // bottom left
(-0.0, -0.0), // top left
(-0.0, 1.0), // bottom left
( 1.0, 1.0), // bottom right
(-1.0, -1.0), // top left
(-0.0, -0.0), // top left
( 1.0, 1.0), // bottom right
( 1.0, -1.0), // top right
( 1.0, -0.0), // top right
],
size: size,
color: color,
@@ -69,15 +69,15 @@ impl Sprite {
],
position: position,
ti_position: [
(-1.0, -1.0), // top left
(-1.0, 1.0), // bottom left
(-0.0, -0.0), // top left
(-0.0, 1.0), // bottom left
( 1.0, 1.0), // bottom right
(-1.0, -1.0), // top left
(-0.0, -0.0), // top left
( 1.0, 1.0), // bottom right
( 1.0, -1.0), // top right
( 1.0, -0.0), // top right
],
size: size,
color: (0.0, 0.0, 0.0, 0.0),
color: (1.0, 0.0, 0.0, 1.0),
textured: true,
texture_handle: Some(texture_handle.clone())
}