Raytracer mesh not centering correctly
I have had this bug for a while, and I tracked it down to the way I am trying to rotate and then center a mesh in my raytracer. The way I figured it out is the meshes need to be rotated first, and then centered with the bottom center point of the mesh at 0, 0, 0. Here is my code:
Raytracer mesh not centering correctly
I have had this bug for a while, and I tracked it down to the way I am trying to rotate and then center a mesh in my raytracer. The way I figured it out is the meshes need to be rotated first, and then centered with the bottom center point of the mesh at 0, 0, 0. Here is my code:
Raytracer mesh not centering correctly
I have had this bug for a while, and I tracked it down to the way I am trying to rotate and then center a mesh in my raytracer. The way I figured it out is the meshes need to be rotated first, and then centered with the bottom center point of the mesh at 0, 0, 0. Here is my code: