summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
96f9700)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
# Position of this sprite in world coordinates
var center: Point3d[Float] is writable
# Position of this sprite in world coordinates
var center: Point3d[Float] is writable
- # Rotation on the Z axis
+ # Rotation on the Z axis, where 0.0 points right and `0.5*pi` points up
var rotation = 0.0 is writable
# Mirror `texture` horizontally, inverting each pixel on the X axis
var rotation = 0.0 is writable
# Mirror `texture` horizontally, inverting each pixel on the X axis
else texture.texture_coords, 2)
simple_2d_program.coord.array(texture.vertices, 3)
else texture.texture_coords, 2)
simple_2d_program.coord.array(texture.vertices, 3)
- simple_2d_program.rotation.uniform new Matrix.rotation(rotation, 0.0, 0.0, 1.0)
+ simple_2d_program.rotation.uniform new Matrix.rotation(rotation, 0.0, 0.0, -1.0)
glDrawArrays(gl_TRIANGLE_STRIP, 0, 4)
end
glDrawArrays(gl_TRIANGLE_STRIP, 0, 4)
end