Skip to content

Commit

Permalink
fix(effect): update windSpeed
Browse files Browse the repository at this point in the history
  • Loading branch information
lslzl3000 committed Jul 10, 2024
1 parent 8fd59b4 commit 538ec2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/effect/grass/material/GrassMaterial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class GrassMaterial extends Material {
colorPass.setUniformVector4("windBound", new Vector4(0, 0, 2000, 2000));
colorPass.setUniformVector2("windDirection", new Vector2(0.6, 0.8));
colorPass.setUniformFloat("windPower", 0.8);
colorPass.setUniformFloat("windSpeed", 12);
colorPass.setUniformFloat("windSpeed", 1.2);
colorPass.setUniformFloat("translucent", 0.35);
colorPass.setUniformFloat("roughness", 0.35);
colorPass.setUniformFloat("curvature", 0.4068);
Expand All @@ -57,7 +57,7 @@ export class GrassMaterial extends Material {
shadowPass.setUniformVector4("windBound", new Vector4(0, 0, 2000, 2000));
shadowPass.setUniformVector2("windDirection", new Vector2(0.6, 0.8));
shadowPass.setUniformFloat("windPower", 0.8);
shadowPass.setUniformFloat("windSpeed", 10);
shadowPass.setUniformFloat("windSpeed", 1.0);
shadowPass.setUniformFloat("translucent", 0.35);
shadowPass.setUniformFloat("roughness", 0.35);
shadowPass.setUniformFloat("curvature", 0.4068);
Expand Down
4 changes: 2 additions & 2 deletions packages/effect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orillusion/effect",
"version": "0.1.2",
"version": "0.1.3",
"author": "Orillusion",
"description": "Orillusion Effects Plugin",
"main": "./dist/effect.umd.js",
Expand All @@ -19,6 +19,6 @@
"url": "git+https://github.com/Orillusion/orillusion.git"
},
"dependencies": {
"@orillusion/core": "^0.7.0"
"@orillusion/core": "^0.8.0"
}
}

0 comments on commit 538ec2d

Please sign in to comment.