Skip to content

Commit ad684ce

Browse files
committed
fix: opt docs
1 parent 770f900 commit ad684ce

2 files changed

Lines changed: 9 additions & 12 deletions

File tree

docs/en/graphics/quality/antiAliasing.mdx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Anti-Aliasing (AA) is an image processing technique that aims to reduce the "ali
1313
/>
1414

1515
## FXAA (Fast Approximate Anti-Aliasing)
16-
[Fast Approximate Anti-Aliasing (FXAA)](https://en.wikipedia.org/wiki/Fast_approximate_anti-aliasing) is screen-space anti-aliasing mode applied after the camera renders the final image,it can smooth all pixels, including by `shader-generated specular`, `alpha-cutoff edge`, `low resolution texture`.
16+
[Fast Approximate Anti-Aliasing (FXAA)](https://en.wikipedia.org/wiki/Fast_approximate_anti-aliasing) is screen-space anti-aliasing mode applied after the camera renders the final image,it can smooth all pixels, including by `shader-generated specular`, `alpha-cutoff edge`.
1717

1818
<Comparison
1919
leftSrc="https://mdn.alipayobjects.com/huamei_9ahbho/afts/img/A*oTb9Trh4Y9sAAAAAAAAAAAAAegDwAQ/original"
@@ -22,6 +22,8 @@ Anti-Aliasing (AA) is an image processing technique that aims to reduce the "ali
2222
rightText="FXAA ON"
2323
/>
2424

25+
Galacean turns off 'FXAA' by default, which you can configure via 'antiAliasing' under the Camera or call [antiAliasing](/apis/core/#Camera-antiAliasing) interface.
26+
2527
## MSAA (Multiple Sampling Anti-Aliasing)
2628
[Multiple Sampling Anti-Aliasing (MSAA)](https://en.wikipedia.org/wiki/Multisample_anti-aliasing) is a hardware-level anti-aliasing technology, mainly addressing the jagged edges of geometric shapes. Since jagged edges caused by materials, textures, and transparency and other non-geometric objects are not affected by `MSAA`, this means that you can use `MSAA` and `FXAA` together.
2729

@@ -38,10 +40,7 @@ Materials, textures, and transparent surfaces are not affected by MSAA, which me
3840

3941
<Callout type="warning">It can be seen that in this scenario, the leaves with transparent clipping (alphaCutoff) are not affected by MSAA, and the opaque bones are affected by MSAA.</Callout>
4042

41-
In Galacean, the default 'msaaSamples' under the camera is' 4x'. You can modify the 'msaaSamples' to customize the 'MSAA' quality. Or, you can also set it through the following interface in the code:
42-
```typescript
43-
camera.msaaSamples = MSAASamples.FourX;
44-
```
43+
In Galacean, the default 'msaaSamples' under the camera is' 4x'. You can modify the 'msaaSamples' to customize the 'MSAA' quality. Or directly call [msaaSamples](/apis/core/#Camera-msaaSamples) interface Settings.
4544

4645
## How to use it in the editor?
4746

docs/zh/graphics/quality/antiAliasing.mdx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@ title: 抗锯齿
1414

1515
## FXAA (快速近似抗锯齿)
1616
[快速近似抗锯齿 (FXAA)](https://en.wikipedia.org/wiki/Fast_approximate_anti-aliasing) 是一种在相机渲染最终图像后的屏幕空间抗锯齿算法,通过检测边缘像素的颜色对比度使锯齿变得更平滑,
17-
所以它可以处理所有像素的锯齿,包括 `着色器生成的高光``透明裁剪(alphaCutoff)后的边缘``低分辨率纹理`
17+
所以它可以处理所有像素的锯齿,包括 `着色器生成的高光``透明裁剪(alphaCutoff)后的边缘`
1818

1919
<Comparison
2020
leftSrc="https://mdn.alipayobjects.com/huamei_9ahbho/afts/img/A*oTb9Trh4Y9sAAAAAAAAAAAAAegDwAQ/original"
2121
leftText="FXAA OFF"
2222
rightSrc="https://mdn.alipayobjects.com/huamei_9ahbho/afts/img/A*my-aSI1FnpoAAAAAAAAAAAAAegDwAQ/original"
2323
rightText="FXAA ON"
2424
/>
25+
Galacean 中默认 `FXAA` 关闭,你可以通过相机下的`抗锯齿`进行配置,或者直接调用 [antiAliasing](/apis/core/#Camera-antiAliasing) 接口设置。
2526

2627
## MSAA (多重采样抗锯齿)
27-
[多重采样抗锯齿 (MSAA)](https://en.wikipedia.org/wiki/Multisample_anti-aliasing)
28-
是一种硬件级别的抗锯齿技术,主要解决几何边缘的锯齿问题,由于材质、纹理、和透明等非几何体造成的锯齿不会受到 `MSAA` 影响,这意味着你可以将 `MSAA``FXAA` 一起搭配使用
28+
[多重采样抗锯齿 (MSAA)](https://en.wikipedia.org/wiki/Multisample_anti-aliasing) 是一种硬件级别的抗锯齿技术,主要解决几何边缘的锯齿问题,由于材质、纹理、和透明等非几何体造成的锯齿不会受到 `MSAA` 影响,这意味着你可以将 `MSAA``FXAA` 一起搭配使用
29+
2930

3031
<Comparison
3132
leftSrc="https://mdn.alipayobjects.com/huamei_9ahbho/afts/img/A*oTb9Trh4Y9sAAAAAAAAAAAAAegDwAQ/original"
@@ -37,10 +38,7 @@ title: 抗锯齿
3738

3839
<Callout type="warning">可以看到该场景里使用透明裁剪(alphaCutoff)的叶片无法受到 MSAA 影响,不透明的骨头会受到 MSAA 影响。</Callout>
3940

40-
Galacean 中相机下的 `MSAA采样` 默认为`4倍`,你可以修改 `MSAA采样` 来自定义 `MSAA` 质量,或者,你也可以在代码中通过以下接口设置:
41-
```typescript
42-
camera.msaaSamples = MSAASamples.FourX;
43-
```
41+
Galacean 中 `MSAA采样` 默认为`4倍`,你可以修改相机下 `MSAA采样` 来自定义 `MSAA` 质量,或者直接调用 [msaaSamples](/apis/core/#Camera-msaaSamples) 接口设置。
4442

4543
## 编辑器中如何使用?
4644

0 commit comments

Comments
 (0)