Skip to content

Commit

Permalink
Release 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Mar 1, 2018
1 parent 8d70bd5 commit a6ded6f
Show file tree
Hide file tree
Showing 6 changed files with 10,215 additions and 49,776 deletions.
8 changes: 4 additions & 4 deletions build/glsl2js.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ var fs = require('fs');

glob(__dirname + '/../{src,editor}/**/*.glsl', function (err, files) {
files.forEach(function (filePath) {
var esslCode = fs.readFileSync(filePath, 'utf-8');
var glslCode = fs.readFileSync(filePath, 'utf-8');
// TODO Remove comment
esslCode = esslCode.replace(/\/\/.*\n/g, '');
esslCode = esslCode.replace(/ +/g, ' ');
glslCode = glslCode.replace(/\/\/.*\n/g, '');
glslCode = glslCode.replace(/ +/g, ' ');

// var dir = path.dirname(filePath);
// var baseName = path.basename(filePath, '.essl');
fs.writeFileSync(
filePath + '.js',
'export default ' + JSON.stringify(esslCode) + ';\n',
'export default ' + JSON.stringify(glslCode) + ';\n',
'utf-8'
);
});
Expand Down
14 changes: 0 additions & 14 deletions dist/QMV.min.js

This file was deleted.

Loading

0 comments on commit a6ded6f

Please sign in to comment.