Blogger

Delete comment from: Rogach on Scala

Rogach said...

We compute normal vector for each triange (line 87 in the full code), so you can use sign of Z coordinate of this vector to determine if triangle faces the camera or not (e.g. skip drawing if norm.z is negative).

Jan 5, 2021, 6:39:26 AM


Posted to How to create your own simple 3D render engine in pure Java

Google apps
Main menu