fx: sphere hit calculation sometimes picking wrong isct point
This commit is contained in:
@@ -102,7 +102,7 @@ impl Vec3 {
|
||||
}
|
||||
|
||||
pub fn reflect(&self, n: &Self) -> Self {
|
||||
*self - 2. * self.dot(n) * n
|
||||
*self - 2. * (self.dot(n) * n)
|
||||
}
|
||||
|
||||
pub fn refract(&self, n: &Self, etai_over_etat: f32) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user