mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
update base pack
This commit is contained in:
parent
d9277e1b31
commit
a5a9a4b9ce
4 changed files with 6 additions and 4 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
],
|
],
|
||||||
"hitbox": [0.4, 0.25, 0.4],
|
"hitbox": [0.4, 0.25, 0.4],
|
||||||
"sensors": [
|
"sensors": [
|
||||||
["aabb", -0.2, -0.2, -0.2, 0.2, 0.2, 0.2],
|
["radius", 0.3],
|
||||||
["radius", 1.6]
|
["radius", 1.6]
|
||||||
],
|
],
|
||||||
"blocking": false
|
"blocking": false
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.8 KiB |
|
|
@ -2,7 +2,9 @@ function inventory_share_func(invid, slotid)
|
||||||
local blockinv = hud.get_block_inventory()
|
local blockinv = hud.get_block_inventory()
|
||||||
if blockinv ~= 0 then
|
if blockinv ~= 0 then
|
||||||
inventory.move(invid, slotid, blockinv)
|
inventory.move(invid, slotid, blockinv)
|
||||||
else
|
elseif rules.get("allow-content-access") then
|
||||||
inventory.set(invid, slotid, 0, 0)
|
inventory.set(invid, slotid, 0, 0)
|
||||||
|
else
|
||||||
|
inventory.move(invid, slotid, invid)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,8 @@ SOFTWARE.
|
||||||
#define ABSORPTION_FALLOFF 4e3 /* how much the absorption decreases the further away it gets from the maximum height */
|
#define ABSORPTION_FALLOFF 4e3 /* how much the absorption decreases the further away it gets from the maximum height */
|
||||||
// and the steps (more looks better, but is slower)
|
// and the steps (more looks better, but is slower)
|
||||||
// the primary step has the most effect on looks
|
// the primary step has the most effect on looks
|
||||||
#define PRIMARY_STEPS 12
|
#define PRIMARY_STEPS 6
|
||||||
#define LIGHT_STEPS 4
|
#define LIGHT_STEPS 2
|
||||||
|
|
||||||
vec3 calculate_scattering(
|
vec3 calculate_scattering(
|
||||||
vec3 start, // the start of the ray (the camera position)
|
vec3 start, // the start of the ray (the camera position)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue