


























































1





























length(hit_pos - camera_pos), right?

dot(camera_dir, hit_pos - camera_pos) (edited)






















hit_pos.y - camera_pos.y




hit_pos.y - camera_pos.y 















(edited)





length * scale = 1, solve for scale






















i just looked for bvec4 and found usages, didnt see it was actually ubvec4, which is unsigned int8_t
#define FIXED_SHIFT 16





























































































































