mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Tweaking around
This commit is contained in:
parent
39fbf15273
commit
de3fdba568
4 changed files with 23 additions and 34 deletions
|
@ -102,6 +102,10 @@ void mysrand(unsigned seed)
|
|||
next = seed;
|
||||
}
|
||||
|
||||
/*
|
||||
PointAttributeList
|
||||
*/
|
||||
|
||||
// Float with distance
|
||||
struct DFloat
|
||||
{
|
||||
|
@ -109,7 +113,7 @@ struct DFloat
|
|||
u32 d;
|
||||
};
|
||||
|
||||
float PointAttributeList::getInterpolatedFloat(v3s16 p)
|
||||
float PointAttributeList::getInterpolatedFloat(v2s16 p)
|
||||
{
|
||||
const u32 near_wanted_count = 5;
|
||||
// Last is nearest, first is farthest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue