Skip to content

Commit

Permalink
Merge pull request #2994 from s4hyhzi/master
Browse files Browse the repository at this point in the history
修改cc-forward-light.chunk说明文档错误的说明 英文文档也进行同步修改
  • Loading branch information
MrKylinGithub authored Aug 29, 2024
2 parents 7f9361a + 035f489 commit ded2aff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
12 changes: 5 additions & 7 deletions versions/3.8/en/shader/uniform.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ All currently available built-in uniforms, grouped by the chunks they are locate

| Name | Type | Info |
| :-- | :-- | :-- |
| `cc_sphereLitPos[MAX_LIGHTS]` | vec4 | xyz: position of spherical lights |
| `cc_sphereLitSizeRange[MAX_LIGHTS]` | vec4 | x: size of spherical lights<br>y: range of spherical lights |
| `cc_sphereLitColor[MAX_LIGHTS]` | vec4 | xyz: color of spherical lights<br>w: intensity |
| `cc_spotLitPos[MAX_LIGHTS]` | vec4 | xyz: position of spotlights |
| `cc_spotLitSizeRangeAngle[MAX_LIGHTS]` | vec4 | x: size of spotlights<br>y: range of spotlights<br>z: angle of spotlights |
| `cc_spotLitDir[MAX_LIGHTS]` | vec4 | xyz: direction of spotlights |
| `cc_spotLitColor[MAX_LIGHTS]` | vec4 | xyz: color of spotlights<br>w: intensity |
| `cc_lightPos[LIGHTS_PER_PASS]` | vec4 | xyz: light source position<br> w: valid light source type 0: directional light, 1: spherical light, 2: spotlight, 3: point light, 4: range directional light, 5: unknown |
| `cc_lightColor[LIGHTS_PER_PASS]` | vec4 | xyz: spherical light color<br>w: spherical light intensity |
| `cc_lightSizeRangeAngle[LIGHTS_PER_PASS]` | vec4 | x: light source size, y: light source range, z: cos(outer half-angle), w: enable shadow |
| `cc_lightDir[LIGHTS_PER_PASS]` | vec4 | xyz: direction, w: unused |
| `cc_lightBoundingSizeVS[LIGHTS_PER_PASS]` | vec4 | xyz: range directional light node half-scale

## `cc-shadow.chunk`

Expand Down
12 changes: 5 additions & 7 deletions versions/3.8/zh/shader/uniform.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,11 @@

| Name | Type | Info |
| :--- | :-- | :-- |
| `cc_sphereLitPos[MAX_LIGHTS]` | vec4 | xyz:球面光位置 |
| `cc_sphereLitSizeRange[MAX_LIGHTS]` | vec4 | x:球光尺寸<br>y:球光范围 |
| `cc_sphereLitColor[MAX_LIGHTS]` | vec4 | xyz:球光颜色<br>w:球光强度 |
| `cc_spotLitPos[MAX_LIGHTS]` | vec4 | xyz:聚光灯位置 |
| `cc_spotLitSizeRangeAngle[MAX_LIGHTS]` | vec4 | x:聚光灯尺寸<br>y:聚光灯范围<br>z:聚光灯角度 |
| `cc_spotLitDir[MAX_LIGHTS]` | vec4 | xyz:聚光灯方向 |
| `cc_spotLitColor[MAX_LIGHTS]` | vec4 | xyz:聚光灯颜色<br>w:聚光灯强度 |
| `cc_lightPos[LIGHTS_PER_PASS]` | vec4 | xyz:光源位置<br> w: 有效的光源类型0: 方向光,1: 球形光,2: 聚光灯,3: 点光源,4: 范围方向光,5: 未知 |
| `cc_lightColor[LIGHTS_PER_PASS]` | vec4 | xyz:球光颜色<br>w:球光强度 |
| `cc_lightSizeRangeAngle[LIGHTS_PER_PASS]` | vec4 | x:光源大小, y:光源范围, z: cos(外半角), w: 启用阴影 |
| `cc_lightDir[LIGHTS_PER_PASS]` | vec4 | xyz: 方向, w: 未使用 |
| `cc_lightBoundingSizeVS[LIGHTS_PER_PASS]` | vec4 | xyz: 范围方向光节点半比例 |

## `cc-shadow.chunk`

Expand Down

0 comments on commit ded2aff

Please sign in to comment.