Back face culling

Steps:

  1. Find cross product of B - A, C - A and do normalization, in order to get N
  2. find camera ray: camera position substract A
  3. Doing dot product: (camera ray . N)

If the face dot product result is < 0,

> then camera ray and N are not the same direction, don't display the face

Else

> display the face


Before:

After:

Resources: pikuma course

Date: 2024-01-01 Mon 00:00

Author: Terry Fung

Created: 2024-11-10 Sun 14:09

Emacs 29.4 (Org mode 9.6.15)

Validate