fixed 0,1 coord issue. Going to test multiple vertex buffers now
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user