Skip to content

Commit efb404b

Browse files
author
Christian Engel
committed
Added minified version
1 parent ae5fcde commit efb404b

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

shaderboy.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
(function () {
1010
'use strict';
1111

12-
var shaderboy = window.shaderboy = {
13-
canvases: [],
14-
fragmentShaders: {},
15-
defaultVertexShader: 'attribute vec2 position;varying vec2 pixelCoords;\nvoid main() {\ngl_Position = vec4(vec2(position * vec2(2,2)) - vec2(1,1), 0., 1.);\npixelCoords=position;}',
16-
defaultVertex: [1, 1, 0, -1, 1, 0, 1, -1, 0, -1, -1, 0],
17-
onerror: function () {
18-
}
19-
};
12+
var shaderboy;
13+
14+
window['shaderboy'] = shaderboy = {};
15+
16+
shaderboy['canvases'] = [];
17+
shaderboy['fragmentShaders'] = {};
18+
shaderboy['defaultVertexShader'] = 'attribute vec2 position;varying vec2 pixelCoords;\nvoid main() {\ngl_Position = vec4(vec2(position * vec2(2,2)) - vec2(1,1), 0., 1.);\npixelCoords=position;}';
19+
shaderboy['defaultVertex'] = [1, 1, 0, -1, 1, 0, 1, -1, 0, -1, -1, 0];
20+
shaderboy['onerror'] = function(){};
2021

2122
var gl,
2223
loaders = {},

shaderboy.min.js

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)