Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #759 from susiwen8/patch-1
Browse files Browse the repository at this point in the history
Update shader-water.ts
  • Loading branch information
eyworldwide authored Jul 3, 2023
2 parents 3d5d125 + a825564 commit 5621b85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playground/shader-water.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ void main (void) {
`;

// 初始化 shader
Shader.create("water", vertexSource, fragSource);
Shader.create("customWater", vertexSource, fragSource);

class ShaderMaterial extends Material {
constructor(engine: Engine) {
super(engine, Shader.find("water"));
super(engine, Shader.find("customWater"));

this.shaderData.setFloat("u_sea_height", 0.6);
this.shaderData.setFloat("u_water_scale", 0.2);
Expand Down

0 comments on commit 5621b85

Please sign in to comment.