edge sampling section for handout

This commit is contained in:
CDaut 2023-06-21 11:19:00 +02:00
parent 2bf100bf94
commit b182bfcd07
6 changed files with 150 additions and 9 deletions

View file

@ -0,0 +1,42 @@
\begin{tikzpicture}[scale = 0.6, every node/.style={scale=0.6}]
%tri after movement
\draw[
fill,
lightgray
] (-0.3,0) -- (6.3,0) -- (3,3.3) -- cycle;
%primary tri
\draw[
fill,
gray
] (0,0) -- (6,0) -- (3,3) -- cycle;
%arrow
\draw[
-to,
line width = 1.2pt,
black
] (3,3) -- (3,4);
% occlusion tri
\draw[
fill,
red
] (3,2) -- (4.5,0.2) -- (6,3);
% samples
\foreach \x/\y in {
0.5/0.5,
1.5/1.5,
2.5/2.5,
3.5/2.5,
5.5/0.5
}
\node[fill = yellow] at (\x,\y) {};
\node[
fill = yellow,
fill opacity = 0.4,
] at (4.5,1.5) {};
\end{tikzpicture}