require shaders from files using glslify and webpack
Showing
- package-lock.json 0 additions, 0 deletionspackage-lock.json
- package.json 10 additions, 5 deletionspackage.json
- src/apps/render-test/state.ts 9 additions, 18 deletionssrc/apps/render-test/state.ts
- src/mol-gl/camera.ts 0 additions, 3 deletionssrc/mol-gl/camera.ts
- src/mol-gl/shader/point.frag 3 additions, 0 deletionssrc/mol-gl/shader/point.frag
- src/mol-gl/shader/point.vert 10 additions, 0 deletionssrc/mol-gl/shader/point.vert
- tsconfig.json 6 additions, 5 deletionstsconfig.json
- webpack.config.js 14 additions, 0 deletionswebpack.config.js
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
... | ... | @@ -13,6 +13,7 @@ |
"scripts": { | ||
"lint": "tslint src/**/*.ts", | ||
"build": "tsc", | ||
"postbuild": "copyfiles --up 1 src/mol-gl/shader/*.vert src/mol-gl/shader/*.frag build/node_modules/", | ||
"watch": "tsc -watch", | ||
"test": "jest", | ||
"script": "node build/node_modules/script.js", | ||
... | ... | @@ -31,13 +32,14 @@ |
"build/node_modules" | ||
], | ||
"moduleNameMapper": { | ||
"mol-task($|/.*)": "<rootDir>/src/mol-task$1", | ||
"mol-comp($|/.*)": "<rootDir>/src/mol-comp$1", | ||
"mol-util($|/.*)": "<rootDir>/src/mol-util$1", | ||
"mol-data($|/.*)": "<rootDir>/src/mol-data$1", | ||
"mol-math($|/.*)": "<rootDir>/src/mol-math$1", | ||
"mol-gl($|/.*)": "<rootDir>/src/mol-gl$1", | ||
"mol-io($|/.*)": "<rootDir>/src/mol-io$1", | ||
"mol-model($|/.*)": "<rootDir>/src/mol-model$1" | ||
"mol-math($|/.*)": "<rootDir>/src/mol-math$1", | ||
"mol-model($|/.*)": "<rootDir>/src/mol-model$1", | ||
"mol-ql($|/.*)": "<rootDir>/src/mol-ql$1", | ||
"mol-task($|/.*)": "<rootDir>/src/mol-task$1", | ||
"mol-util($|/.*)": "<rootDir>/src/mol-util$1" | ||
}, | ||
"testRegex": "\\.spec\\.ts$" | ||
}, | ||
... | ... | @@ -53,7 +55,10 @@ |
"@types/react": "^16.0.4", | ||
"@types/react-dom": "^16.0.4", | ||
"benchmark": "^2.1.4", | ||
"copyfiles": "^2.0.0", | ||
"glslify-loader": "^1.0.2", | ||
"jest": "^22.4.2", | ||
"raw-loader": "^0.5.1", | ||
"regl": "git+https://github.com/regl-project/regl.git#45c6ec570232420fca21567499c9c5a2a054432e", | ||
"rollup": "^0.56.2", | ||
"rollup-plugin-buble": "^0.19.2", | ||
... | ... |
src/mol-gl/shader/point.frag
0 → 100644
src/mol-gl/shader/point.vert
0 → 100644
webpack.config.js
0 → 100644
Please register or sign in to comment