swap face normals

This commit is contained in:
griffi-gh 2023-01-23 03:27:08 +01:00
parent ecedfc929d
commit 710bedeaec

View file

@ -23,12 +23,12 @@ const CUBE_FACE_VERTICES: [[Vec3A; 4]; 6] = [
[vec3a(1., 0., 1.), vec3a(1., 1., 1.), vec3a(0., 0., 1.), vec3a(0., 1., 1.)],
[vec3a(0., 0., 1.), vec3a(0., 0., 0.), vec3a(1., 0., 1.), vec3a(1., 0., 0.)],
];
const CUBE_FACE_NORMALS: [Vec3A; 6] = [ //this is likely incorrect for a right handed system
const CUBE_FACE_NORMALS: [Vec3A; 6] = [
vec3a(0., 1., 0.),
vec3a(0., 0., 1.),
vec3a(0., 0., -1.),
vec3a(-1.,0., 0.),
vec3a(1., 0., 0.),
vec3a(0., 0., -1.),
vec3a(0., 0., 1.),
vec3a(0., -1.,0.)
];
const CUBE_FACE_INDICES: [u32; 6] = [0, 1, 2, 2, 1, 3];