Skip to content

Commit

Permalink
fix a couple things in the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
flyover committed Apr 13, 2016
1 parent a1a85d5 commit 7319dbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,17 @@ main.start = function() {
var anim_blend = 0.0;

add_range_control("Anim Rate", anim_rate, -2.0, 2.0, 0.1, function(value) {
anim_rate = value;
anim_rate = parseFloat(value);
});

add_range_control("Anim Blend", anim_blend, 0.0, 1.0, 0.01, function(value) {
anim_blend = value;
anim_blend = parseFloat(value);
});

var alpha = 1.0;

add_range_control("Alpha", alpha, 0.0, 1.0, 0.01, function(value) {
alpha = value;
alpha = parseFloat(value);
});

var loadFile = function(file, callback) {
Expand Down Expand Up @@ -442,7 +442,7 @@ main.start = function() {
}

mat4x4Translate(gl_projection, -camera_x, -camera_y, 0);
mat4x4Scale(gl_projection, camera_zoom, camera_zoom, camera_zoom);
mat4x4Scale(gl_projection, camera_zoom, camera_zoom, 1);

if (enable_render_webgl) {
render_webgl.drawPose(spine_pose, atlas_data);
Expand Down

0 comments on commit 7319dbd

Please sign in to comment.