Skip to content

Commit

Permalink
0.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciogonzalezvivo committed Jun 25, 2018
1 parent 40eecc0 commit 184fefa
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
8 changes: 5 additions & 3 deletions dist/GlslCanvas.es.js
Expand Up @@ -1190,8 +1190,10 @@ var GlslCanvas = function () {
this.texureIndex = this.BUFFER_COUNT;

// Trigger event
this.forceRender = true;
this.trigger('load', {});

this.forceRender = true;
this.render();
}
}, {
key: 'test',
Expand Down Expand Up @@ -1412,7 +1414,7 @@ var GlslCanvas = function () {
key: 'render',
value: function render() {
this.visible = isCanvasVisible(this.canvas);
if (this.forceRender || this.animated && this.visible && !this.paused) {
if (this.forceRender || this.change || this.animated && this.visible && !this.paused) {

// Update Uniforms when are need
var date = new Date();
Expand Down Expand Up @@ -1641,7 +1643,7 @@ var GlslCanvas = function () {
}, {
key: 'version',
value: function version() {
return '0.1.6';
return '0.1.7';
}
}]);
return GlslCanvas;
Expand Down
8 changes: 5 additions & 3 deletions dist/GlslCanvas.js
Expand Up @@ -1595,8 +1595,10 @@ var GlslCanvas = function () {
this.texureIndex = this.BUFFER_COUNT;

// Trigger event
this.forceRender = true;
this.trigger('load', {});

this.forceRender = true;
this.render();
}
}, {
key: 'test',
Expand Down Expand Up @@ -1817,7 +1819,7 @@ var GlslCanvas = function () {
key: 'render',
value: function render() {
this.visible = isCanvasVisible(this.canvas);
if (this.forceRender || this.animated && this.visible && !this.paused) {
if (this.forceRender || this.change || this.animated && this.visible && !this.paused) {

// Update Uniforms when are need
var date = new Date();
Expand Down Expand Up @@ -2046,7 +2048,7 @@ var GlslCanvas = function () {
}, {
key: 'version',
value: function version() {
return '0.1.6';
return '0.1.7';
}
}]);
return GlslCanvas;
Expand Down
8 changes: 5 additions & 3 deletions lib/GlslCanvas.js
Expand Up @@ -1591,8 +1591,10 @@ var GlslCanvas = function () {
this.texureIndex = this.BUFFER_COUNT;

// Trigger event
this.forceRender = true;
this.trigger('load', {});

this.forceRender = true;
this.render();
}
}, {
key: 'test',
Expand Down Expand Up @@ -1813,7 +1815,7 @@ var GlslCanvas = function () {
key: 'render',
value: function render() {
this.visible = isCanvasVisible(this.canvas);
if (this.forceRender || this.animated && this.visible && !this.paused) {
if (this.forceRender || this.change || this.animated && this.visible && !this.paused) {

// Update Uniforms when are need
var date = new Date();
Expand Down Expand Up @@ -2042,7 +2044,7 @@ var GlslCanvas = function () {
}, {
key: 'version',
value: function version() {
return '0.1.6';
return '0.1.7';
}
}]);
return GlslCanvas;
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "glslCanvas",
"version": "0.1.6",
"version": "0.1.7",
"description": "Simple GLSL Fragment Shader Sandbox",
"main": "dist/GlslCanvas.js",
"module": "dist/GlslCanvas.es.js",
Expand Down
10 changes: 6 additions & 4 deletions src/GlslCanvas.js
Expand Up @@ -267,8 +267,10 @@ void main(){
this.texureIndex = this.BUFFER_COUNT;

// Trigger event
this.forceRender = true;
this.trigger('load', {});

this.forceRender = true;
this.render();
}

test (callback, fragString, vertString) {
Expand Down Expand Up @@ -474,8 +476,8 @@ void main(){

render () {
this.visible = isCanvasVisible(this.canvas);
if (this.forceRender ||
(this.animated && this.visible && ! this.paused)) {
if ( this.forceRender || this.change ||
(this.animated && this.visible && ! this.paused) ) {

// Update Uniforms when are need
let date = new Date();
Expand Down Expand Up @@ -683,7 +685,7 @@ void main(){
}

version() {
return '0.1.6';
return '0.1.7';
}
}

Expand Down

0 comments on commit 184fefa

Please sign in to comment.