📅  最后修改于: 2022-03-11 14:59:39.427000             🧑  作者: Mango
vec3 world_camera = (CAMERA_MATRIX * vec4(0.0, 0.0, 0.0, 1.0)).xyz;
vec3 world_space = (WORLD_MATRIX * vec4(0.0, 0.0, 0.0, 1.0)).xyz;
float camera_distance = distance(world_camera, world_space);