Skip to content

Commit

Permalink
corrected coordinate system where displacement mapping operates: t/b/…
Browse files Browse the repository at this point in the history
…n instead of x/y/n
  • Loading branch information
JMeseth authored and proog128 committed Aug 24, 2023
1 parent 2275b04 commit 0fd532e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec-2021x.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@
Displacement mapping modifies the position $\mathbf{p}$ of surface points to add details to geometry. The displacement parameter $h$ is a vector, specifying the direction and length of the displacement in the local surface coordinate system defined by normal $\mathbf{n}$, tangent $\mathbf{t}$, and bitangent $\mathbf{b}$ (see Section [Tangent Space]). The new position $\mathbf{p}^{\prime}$ is given as

\begin{eqnarray}
\mathbf{p}^{\prime} = \mathbf{p} + \mathbf{x} h_x + \mathbf{y} h_y + \mathbf{n} h_z
\mathbf{p}^{\prime} = \mathbf{p} + \mathbf{t} h_x + \mathbf{b} h_y + \mathbf{n} h_z
\end{eqnarray}

Name | Type | Default | Range | Description
Expand Down
2 changes: 1 addition & 1 deletion spec-2022x.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@
Displacement mapping modifies the position $\mathbf{p}$ of surface points to add details to geometry. The displacement parameter $h$ is a vector, specifying the direction and length of the displacement in the local surface coordinate system defined by normal $\mathbf{n}$, tangent $\mathbf{t}$, and bitangent $\mathbf{b}$ (see Section [Tangent Space]). The new position $\mathbf{p}^{\prime}$ is given as

\begin{eqnarray}
\mathbf{p}^{\prime} = \mathbf{p} + \mathbf{x} h_x + \mathbf{y} h_y + \mathbf{n} h_z
\mathbf{p}^{\prime} = \mathbf{p} + \mathbf{t} h_x + \mathbf{b} h_y + \mathbf{n} h_z
\end{eqnarray}

Name | Type | Default | Range | Description
Expand Down

0 comments on commit 0fd532e

Please sign in to comment.