mirror of
https://github.com/seigler/webgl-threejs-hello
synced 2025-07-27 09:46:13 +00:00
⚡ Dither clouds
This commit is contained in:
parent
8721b90d84
commit
0b5065bc97
7 changed files with 16 additions and 11 deletions
|
@ -46,8 +46,6 @@ export default class Webgl {
|
|||
initPostprocessing() {
|
||||
if (!this.usePostprocessing) return;
|
||||
this._composer = new THREE.EffectComposer(this._renderer);
|
||||
let ssaoShader = THREE.SSAOShader;
|
||||
ssaoShader.uniforms.onlyAO = true;
|
||||
this._passes.forEach((effect, i) => {
|
||||
if (i == this._passes.length - 1) {
|
||||
effect.renderToScreen = true;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const props = {
|
||||
rotation: 0.01,
|
||||
cloudSpeed: 0.5,
|
||||
};
|
||||
|
||||
module.exports = props;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue