This commit is contained in:
2026-10-30 14:48:06 +01:00
commit c4a5a4b4ed
131 changed files with 10399 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
uniform vec3 uForward;
uniform vec3 uRight;
uniform vec3 uUp;
uniform float uAspect;
uniform float uTanHalfFov;
vec3 cameraRay(vec2 uv) {
vec2 xy=(uv*2.0-1.0)*uTanHalfFov;
return normalize(uForward+uRight*xy.x*uAspect+uUp*xy.y);
}