Graphics Reference
In-Depth Information
i , and after being perturbed, it is N =
So initially N
=
i
01 j
+
005 k . Let's compute the angle
between these vectors using the dot product:
cos 1 N
·
N
=
N
N
cos 1 i
cos 1 1
10125
·
i
01 j
+
005 k
901
=
=
=
10125
As mentioned above, it is possible to convert the original height field into an offset map
containing the vectors to perturb N , thus saving considerable repetitive computation.
 
Search WWH ::




Custom Search