Skip to content

Commit

Permalink
chore: quick fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
aamir1995 committed Oct 2, 2023
1 parent 8cd282e commit d5555ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guides/clipping_volumes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Clipping volumes does not currently apply to dynamic objects!
:::

Clipping volumes are formed by a set of planes, or [halfspaces](<https://en.wikipedia.org/wiki/Half-space_(geometry)>).
Each halfspace is defined by a plane normal vector `nx,ny,nz` and an offset (negative distance) along that vector `o`.
From this we can compute a signed distance to that plane for any given 3D coordinate (x,y,z).
Each halfspace is defined by a plane normal vector $nx,ny,nz$ and an offset (negative distance) along that vector $o$.
From this we can compute a signed distance to that plane for any given 3D coordinate $(x,y,z)$.

> signed_distance$(x, y, z) = x*nx + y*ny + z*nz - o;$
Expand Down Expand Up @@ -102,7 +102,7 @@ This feature is particularly useful for orthographic projections, where surfaces

<PlaygroundComponent demoKey="clipping.outlines" />

Due to limitations in the WebGL2 api, outline rendering has a significant memory overhead.
Due to limitations in the WebGL2 API, outline rendering has a significant memory overhead.
Every clipping plane you enable it on will also incur an extra performance cost.

Because of the performance and memory hit of the outline feature, not all devices will have it enabled.
Expand Down

0 comments on commit d5555ad

Please sign in to comment.