Differences From Artifact [201c3dd9c9]:
- File src/worldocull.m — part of check-in [5b7b7d2fc5] at 2025-03-24 22:14:24 on branch trunk — Convert player into a class (user: js, size: 4486) [annotate] [blame] [check-ins using]
To Artifact [a7de71ad12]:
- File
src/worldocull.m
— part of check-in
[75e920ae30]
at
2025-03-29 14:25:43
on branch trunk
— Switch from clang-format to manual formatting
clang-format does too many weird things. (user: js, size: 4487) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 11 12 13 | // worldocull.cpp: occlusion map and occlusion test #include "cube.h" #import "Command.h" #import "Player.h" #define NUMRAYS 512 float rdist[NUMRAYS]; bool ocull = true; float odist = 256; | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | // worldocull.cpp: occlusion map and occlusion test #include "cube.h" #import "Command.h" #import "Player.h" #define NUMRAYS 512 float rdist[NUMRAYS]; bool ocull = true; float odist = 256; COMMAND(toggleocull, ARG_NONE, ^ { ocull = !ocull; }) // constructs occlusion map: cast rays in all directions on the 2d plane and // record distance. done exactly once per frame. void |
︙ | ︙ |