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

Commit

Permalink
feat: opt doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Sway007 committed Sep 15, 2023
1 parent ded862e commit 0d34918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/shader-lab.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ label: Graphics/Material
```ts
import { ShaderLab } from "@galacean/engine-shaderlab";

// Create engine with shaderLab
// 使用ShaderLab初始化Engine
const engine = await WebGLEngine.create({ canvas: "canvas", shaderLab });

......

// Create shader by galacean shader code directly!
// 直接使用ShaderLab创建Shader
const shader = Shader.create(galaceanShaderCode);
```

Expand Down

0 comments on commit 0d34918

Please sign in to comment.