mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
normals finished
This commit is contained in:
parent
f5b5130e8b
commit
616057b2b9
3 changed files with 50 additions and 15 deletions
|
|
@ -223,7 +223,7 @@ voxel* Chunks::rayCast(vec3 start,
|
|||
|
||||
const Block* def = contentIds->getBlockDef(voxel->id);
|
||||
if (def->selectable){
|
||||
//timeutil::ScopeLogTimer lg((long long)def);
|
||||
timeutil::ScopeLogTimer lg((long long)def);
|
||||
end.x = px + t * dx;
|
||||
end.y = py + t * dy;
|
||||
end.z = pz + t * dz;
|
||||
|
|
@ -236,7 +236,7 @@ voxel* Chunks::rayCast(vec3 start,
|
|||
? def->rt.hitboxes[voxel->rotation()]
|
||||
: def->hitbox;
|
||||
rayvec3 in, out; // <- now not used, but for future...
|
||||
if (Rays::rayIntersectAABB(start, dir, iend, box, in, out, norm) > RayRelation::None){
|
||||
if (Rays::rayIntersectAABB(start, dir, iend, box, maxDist, in, out, norm) > RayRelation::None){
|
||||
return voxel;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue