forked from hongfaqiu/cesium-particle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change file organization and build way
- Loading branch information
Showing
19 changed files
with
127 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/node_modules | ||
/example | ||
/data | ||
/packages | ||
package-lock.json | ||
webpack.config.js |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const CalculateSpeedShader = require('./glsl/calculateSpeed.frag'); | ||
const UpdatePositionShader = require('./glsl/updatePosition.frag'); | ||
const PostProcessingPositionShader = require('./glsl/postProcessingPosition.frag'); | ||
const segmentDrawVert = require('./glsl/segmentDraw.vert'); | ||
const fullscreenVert = require('./glsl/fullscreen.vert'); | ||
const screenDrawFrag = require('./glsl/screenDraw.frag'); | ||
const segmentDrawFrag = require('./glsl/segmentDraw.frag'); | ||
const trailDrawFrag = require('./glsl/trailDraw.frag'); | ||
|
||
export { | ||
CalculateSpeedShader, | ||
UpdatePositionShader, | ||
PostProcessingPositionShader, | ||
segmentDrawVert, | ||
fullscreenVert, | ||
screenDrawFrag, | ||
segmentDrawFrag, | ||
trailDrawFrag | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
mode: 'production', | ||
entry: path.resolve(__dirname, 'packages/shader/index.js'), | ||
output: { | ||
path: path.join(__dirname, 'src/shader/'), | ||
filename: 'shader.min.js', | ||
libraryTarget: 'commonjs' //模块输出方式 | ||
}, | ||
resolve: { | ||
extensions: ['.js'], | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /(\.js)$/, | ||
exclude: /node_modules/, | ||
loader: 'babel-loader' | ||
}, | ||
{ | ||
test: /\.(frag|vert)$/, | ||
loader: 'webpack-glsl-loader' | ||
} | ||
] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters