1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/raycastlib.git synced 2024-11-20 20:19:57 +01:00

Address a TODO

This commit is contained in:
Miloslav Číž 2018-09-20 17:59:07 +02:00
parent 2cb5142195
commit 2c682a25b9

View file

@ -109,6 +109,10 @@
expensive way of computing texture coords. */
#endif
#define HORIZON_DEPTH (12 * RCL_UNITS_PER_SQUARE) /**< What depth the horizon
has (the floor depth is only
approximated with the help
of this constant). */
#define RCL_logV2D(v)\
printf("[%d,%d]\n",v.x,v.y);
@ -1349,8 +1353,7 @@ void RCL_render(RCL_Camera cam, RCL_ArrayFunction floorHeightFunc,
RCL_divRoundDown(cam.position.y,RCL_UNITS_PER_SQUARE)) -1 * cam.height
: RCL_INFINITY;
// TODO
_RCL_horizontalDepthStep = (12 * RCL_UNITS_PER_SQUARE) / cam.resolution.y;
_RCL_horizontalDepthStep = HORIZON_DEPTH / cam.resolution.y;
RCL_castRaysMultiHit(cam,_floorCeilFunction,typeFunction,
_columnFunction,constraints);