mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-11-21 20:29:59 +01:00
Address a TODO
This commit is contained in:
parent
2cb5142195
commit
2c682a25b9
1 changed files with 5 additions and 2 deletions
|
@ -109,6 +109,10 @@
|
||||||
expensive way of computing texture coords. */
|
expensive way of computing texture coords. */
|
||||||
#endif
|
#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)\
|
#define RCL_logV2D(v)\
|
||||||
printf("[%d,%d]\n",v.x,v.y);
|
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_divRoundDown(cam.position.y,RCL_UNITS_PER_SQUARE)) -1 * cam.height
|
||||||
: RCL_INFINITY;
|
: RCL_INFINITY;
|
||||||
|
|
||||||
// TODO
|
_RCL_horizontalDepthStep = HORIZON_DEPTH / cam.resolution.y;
|
||||||
_RCL_horizontalDepthStep = (12 * RCL_UNITS_PER_SQUARE) / cam.resolution.y;
|
|
||||||
|
|
||||||
RCL_castRaysMultiHit(cam,_floorCeilFunction,typeFunction,
|
RCL_castRaysMultiHit(cam,_floorCeilFunction,typeFunction,
|
||||||
_columnFunction,constraints);
|
_columnFunction,constraints);
|
||||||
|
|
Loading…
Reference in a new issue