Add coral forest and forsaken desert sun, add logic for flipping sun afternoon

This commit is contained in:
Juraj Vajda 2023-02-22 00:07:32 -05:00
parent b38275db25
commit 356e32db11
8 changed files with 657 additions and 582 deletions

View File

@ -811,6 +811,10 @@ GNU Lesser General Public License v2.1 or later (see included LICENSE file)
- everness_cursed_brick.png
- everness_cursed_sandstone_block.png
- everness_cursed_sandstone_brick.png
- everness_forsaken_desert_sun.png
- everness_forsaken_desert_sun_tonemap.png
- everness_coral_forest_sun_tonemap.png
- everness_coral_forest_sun.png
**CC-BY-SA-4.0, Pixel Perfection by XSSheep**, https://minecraft.curseforge.com/projects/pixel-perfection-freshly-updated

571
api.lua
View File

@ -20,7 +20,6 @@
---@class Everness
---@field bamboo {['growth_stages']: table<number, table>, ['top_leaves_schem']: table}
---@field loot_chest {['default']: table[]}
---@field skybox {['skybox']: table}
Everness = {
bamboo = {
-- based on height
@ -380,576 +379,6 @@ Everness = {
},
}
},
skybox = {
biomes = {
everness_cursed_lands = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#89adb1',
day_horizon = '#a9cdd1',
dawn_sky = '#a5c9cd',
dawn_horizon = '#aaced2',
night_sky = '#416569',
night_horizon = '#6a8e92',
indoors = '#4a6e72',
fog_sun_tint = '#7ca0a4',
fog_moon_tint = '#7da1a5'
}
},
sun_parameters = {
texture = 'everness_cursed_lands_sun.png',
scale = 1.57,
sunrise = 'everness_cursed_lands_sunrisebg.png',
tonemap = 'everness_cursed_lands_sun_tonemap.png'
},
moon_parameters = {
texture = 'everness_cursed_lands_moon.png',
tonemap = 'everness_cursed_lands_moon_tonemap.png'
},
cloud_parameters = {
density = 0.7,
color = '#a9cdd1e5',
speed = { x = -2, z = -2 }
}
},
everness_cursed_lands_dunes = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#89adb1',
day_horizon = '#a9cdd1',
dawn_sky = '#a5c9cd',
dawn_horizon = '#aaced2',
night_sky = '#416569',
night_horizon = '#6a8e92',
indoors = '#4a6e72',
fog_sun_tint = '#7ca0a4',
fog_moon_tint = '#7da1a5'
}
},
sun_parameters = {
texture = 'everness_cursed_lands_sun.png',
scale = 1.57,
sunrise = 'everness_cursed_lands_sunrisebg.png',
tonemap = 'everness_cursed_lands_sun_tonemap.png'
},
moon_parameters = {
texture = 'everness_cursed_lands_moon.png',
tonemap = 'everness_cursed_lands_moon_tonemap.png'
},
cloud_parameters = {
density = 0.7,
color = '#a9cdd1e5',
speed = { x = -2, z = -2 }
}
},
everness_cursed_lands_swamp = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#89adb1',
day_horizon = '#a9cdd1',
dawn_sky = '#a5c9cd',
dawn_horizon = '#aaced2',
night_sky = '#416569',
night_horizon = '#6a8e92',
indoors = '#4a6e72',
fog_sun_tint = '#7ca0a4',
fog_moon_tint = '#7da1a5'
}
},
sun_parameters = {
texture = 'everness_cursed_lands_sun.png',
scale = 1.57,
sunrise = 'everness_cursed_lands_sunrisebg.png',
tonemap = 'everness_cursed_lands_sun_tonemap.png'
},
moon_parameters = {
texture = 'everness_cursed_lands_moon.png',
tonemap = 'everness_cursed_lands_moon_tonemap.png'
},
cloud_parameters = {
density = 0.7,
color = '#a9cdd1e5',
speed = { x = -2, z = -2 }
}
},
everness_cursed_lands_ocean = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#89adb1',
day_horizon = '#a9cdd1',
dawn_sky = '#a5c9cd',
dawn_horizon = '#aaced2',
night_sky = '#416569',
night_horizon = '#6a8e92',
indoors = '#4a6e72',
fog_sun_tint = '#7ca0a4',
fog_moon_tint = '#7da1a5'
}
},
sun_parameters = {
texture = 'everness_cursed_lands_sun.png',
scale = 1.57,
sunrise = 'everness_cursed_lands_sunrisebg.png',
tonemap = 'everness_cursed_lands_sun_tonemap.png'
},
moon_parameters = {
texture = 'everness_cursed_lands_moon.png',
tonemap = 'everness_cursed_lands_moon_tonemap.png'
},
cloud_parameters = {
density = 0.7,
color = '#a9cdd1e5',
speed = { x = -2, z = -2 }
}
},
everness_cursed_lands_under = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#89adb1',
day_horizon = '#a9cdd1',
dawn_sky = '#a5c9cd',
dawn_horizon = '#aaced2',
night_sky = '#416569',
night_horizon = '#6a8e92',
indoors = '#4a6e72',
fog_sun_tint = '#7ca0a4',
fog_moon_tint = '#7da1a5'
}
},
sun_parameters = {
texture = 'everness_cursed_lands_sun.png',
scale = 1.57,
sunrise = 'everness_cursed_lands_sunrisebg.png',
tonemap = 'everness_cursed_lands_sun_tonemap.png'
},
moon_parameters = {
texture = 'everness_cursed_lands_moon.png',
tonemap = 'everness_cursed_lands_moon_tonemap.png'
},
cloud_parameters = {
density = 0.7,
color = '#a9cdd1e5',
speed = { x = -2, z = -2 }
}
},
everness_coral_forest = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#c492a5',
day_sky = '',
day_horizon = '#e4b2c5',
dawn_sky = '#e0aec1',
dawn_horizon = '#e5b3c6',
night_sky = '#7c4a5d',
night_horizon = '#a57386',
indoors = '#855366',
fog_sun_tint = '#b78598',
fog_moon_tint = '#b88699'
}
},
},
everness_coral_forest_dunes = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#c492a5',
day_sky = '',
day_horizon = '#e4b2c5',
dawn_sky = '#e0aec1',
dawn_horizon = '#e5b3c6',
night_sky = '#7c4a5d',
night_horizon = '#a57386',
indoors = '#855366',
fog_sun_tint = '#b78598',
fog_moon_tint = '#b88699'
}
},
},
everness_coral_forest_ocean = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#c492a5',
day_sky = '',
day_horizon = '#e4b2c5',
dawn_sky = '#e0aec1',
dawn_horizon = '#e5b3c6',
night_sky = '#7c4a5d',
night_horizon = '#a57386',
indoors = '#855366',
fog_sun_tint = '#b78598',
fog_moon_tint = '#b88699'
}
},
},
everness_coral_forest_under = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#c492a5',
day_sky = '',
day_horizon = '#e4b2c5',
dawn_sky = '#e0aec1',
dawn_horizon = '#e5b3c6',
night_sky = '#7c4a5d',
night_horizon = '#a57386',
indoors = '#855366',
fog_sun_tint = '#b78598',
fog_moon_tint = '#b88699'
}
},
},
everness_bamboo_forest = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#5dd35d',
day_sky = '',
day_horizon = '#7df37d',
-- dawn_sky = '#79ef79',
dawn_sky = '',
dawn_horizon = '#7ef47e',
-- night_sky = '#158b15',
night_sky = '',
night_horizon = '#3eb43e',
indoors = '#1e941e',
fog_sun_tint = '#50c650',
fog_moon_tint = '#51c751'
}
},
},
everness_bamboo_forest_under = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#5dd35d',
day_sky = '',
day_horizon = '#7df37d',
-- dawn_sky = '#79ef79',
dawn_sky = '',
dawn_horizon = '#7ef47e',
-- night_sky = '#158b15',
night_sky = '',
night_horizon = '#3eb43e',
indoors = '#1e941e',
fog_sun_tint = '#50c650',
fog_moon_tint = '#51c751'
}
},
},
everness_frosted_icesheet = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#9da4aa',
day_horizon = '#bdc4ca',
dawn_sky = '#b9c0c6',
dawn_horizon = '#bec5cb',
night_sky = '#555c62',
night_horizon = '#7e858b',
indoors = '#5e656b',
fog_sun_tint = '#90979d',
fog_moon_tint = '#91989e'
}
},
},
everness_frosted_icesheet_ocean = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#9da4aa',
day_horizon = '#bdc4ca',
dawn_sky = '#b9c0c6',
dawn_horizon = '#bec5cb',
night_sky = '#555c62',
night_horizon = '#7e858b',
indoors = '#5e656b',
fog_sun_tint = '#90979d',
fog_moon_tint = '#91989e'
}
},
},
everness_frosted_icesheet_under = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#9da4aa',
day_horizon = '#bdc4ca',
dawn_sky = '#b9c0c6',
dawn_horizon = '#bec5cb',
night_sky = '#555c62',
night_horizon = '#7e858b',
indoors = '#5e656b',
fog_sun_tint = '#90979d',
fog_moon_tint = '#91989e'
}
},
},
everness_crystal_forest = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#b992c5',
day_sky = '',
day_horizon = '#d9b2e5',
dawn_sky = '#d5aee1',
dawn_horizon = '#dab3e6',
night_sky = '#714a7d',
night_horizon = '#9a73a6',
indoors = '#7a5386',
fog_sun_tint = '#ac85b8',
fog_moon_tint = '#ad86b9'
}
},
moon_parameters = {
texture = 'everness_crystal_forest_moon.png',
tonemap = 'everness_crystal_forest_moon_tonemap.png'
},
star_parameters = {
count = 6000,
scale = 0.5
}
},
everness_crystal_forest_dunes = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#b992c5',
day_sky = '',
day_horizon = '#d9b2e5',
dawn_sky = '#d5aee1',
dawn_horizon = '#dab3e6',
night_sky = '#714a7d',
night_horizon = '#9a73a6',
indoors = '#7a5386',
fog_sun_tint = '#ac85b8',
fog_moon_tint = '#ad86b9'
}
},
moon_parameters = {
texture = 'everness_crystal_forest_moon.png',
tonemap = 'everness_crystal_forest_moon_tonemap.png'
},
star_parameters = {
count = 6000,
scale = 0.5
}
},
everness_crystal_forest_shore = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#b992c5',
day_sky = '',
day_horizon = '#d9b2e5',
dawn_sky = '#d5aee1',
dawn_horizon = '#dab3e6',
night_sky = '#714a7d',
night_horizon = '#9a73a6',
indoors = '#7a5386',
fog_sun_tint = '#ac85b8',
fog_moon_tint = '#ad86b9'
}
},
moon_parameters = {
texture = 'everness_crystal_forest_moon.png',
tonemap = 'everness_crystal_forest_moon_tonemap.png'
},
star_parameters = {
count = 6000,
scale = 0.5
}
},
everness_crystal_forest_ocean = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#b992c5',
day_sky = '',
day_horizon = '#d9b2e5',
dawn_sky = '#d5aee1',
dawn_horizon = '#dab3e6',
night_sky = '#714a7d',
night_horizon = '#9a73a6',
indoors = '#7a5386',
fog_sun_tint = '#ac85b8',
fog_moon_tint = '#ad86b9'
}
},
moon_parameters = {
texture = 'everness_crystal_forest_moon.png',
tonemap = 'everness_crystal_forest_moon_tonemap.png'
},
star_parameters = {
count = 6000,
scale = 0.5
}
},
everness_crystal_forest_under = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#b992c5',
day_sky = '',
day_horizon = '#d9b2e5',
dawn_sky = '#d5aee1',
dawn_horizon = '#dab3e6',
night_sky = '#714a7d',
night_horizon = '#9a73a6',
indoors = '#7a5386',
fog_sun_tint = '#ac85b8',
fog_moon_tint = '#ad86b9'
}
},
star_parameters = {
count = 6000,
scale = 0.5
}
},
everness_forsaken_desert = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#d5946e',
day_horizon = '#f5b48e',
dawn_sky = '#f1b08a',
dawn_horizon = '#f6b58f',
night_sky = '#8d4c26',
night_horizon = '#b6754f',
indoors = '#96552f',
fog_sun_tint = '#c88761',
fog_moon_tint = '#c98862'
}
}
},
everness_forsaken_desert_ocean = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#d5946e',
day_horizon = '#f5b48e',
dawn_sky = '#f1b08a',
dawn_horizon = '#f6b58f',
night_sky = '#8d4c26',
night_horizon = '#b6754f',
indoors = '#96552f',
fog_sun_tint = '#c88761',
fog_moon_tint = '#c98862'
}
}
},
everness_forsaken_desert_under = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#d5946e',
day_horizon = '#f5b48e',
dawn_sky = '#f1b08a',
dawn_horizon = '#f6b58f',
night_sky = '#8d4c26',
night_horizon = '#b6754f',
indoors = '#96552f',
fog_sun_tint = '#c88761',
fog_moon_tint = '#c98862'
}
}
},
everness_baobab_savanna = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#c4a156',
day_horizon = '#e4c176',
dawn_sky = '#e0bd72',
dawn_horizon = '#e5c277',
night_sky = '#7c590e',
night_horizon = '#a58237',
indoors = '#856217',
fog_sun_tint = '#b79449',
fog_moon_tint = '#b8954a'
}
}
},
everness_forsaken_tundra = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#a3a49f',
-- day_sky = '#caa339',
day_horizon = '#eac359',
dawn_sky = '#e6bf55',
dawn_horizon = '#ebc45a',
-- night_sky = '#5b5c57',
night_sky = '#7c5b01',
night_horizon = '#ab841a',
indoors = '#896401',
fog_sun_tint = '#bd962c',
fog_moon_tint = '#be972d'
}
}
},
everness_forsaken_tundra_beach = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#a3a49f',
-- day_sky = '#caa339',
day_horizon = '#eac359',
dawn_sky = '#e6bf55',
dawn_horizon = '#ebc45a',
-- night_sky = '#5b5c57',
night_sky = '#7c5b01',
night_horizon = '#ab841a',
indoors = '#896401',
fog_sun_tint = '#bd962c',
fog_moon_tint = '#be972d'
}
}
},
everness_forsaken_tundra_ocean = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#a3a49f',
-- day_sky = '#caa339',
day_horizon = '#eac359',
dawn_sky = '#e6bf55',
dawn_horizon = '#ebc45a',
-- night_sky = '#5b5c57',
night_sky = '#7c5b01',
night_horizon = '#ab841a',
indoors = '#896401',
fog_sun_tint = '#bd962c',
fog_moon_tint = '#be972d'
}
}
},
everness_forsaken_tundra_under = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#a3a49f',
-- day_sky = '#caa339',
day_horizon = '#eac359',
dawn_sky = '#e6bf55',
dawn_horizon = '#ebc45a',
-- night_sky = '#5b5c57',
night_sky = '#7c5b01',
night_horizon = '#ab841a',
indoors = '#896401',
fog_sun_tint = '#bd962c',
fog_moon_tint = '#be972d'
}
}
},
}
},
settings = {
biomes = {
everness_coral_forest = {

View File

@ -16,6 +16,617 @@
License along with this library; if not, write to juraj.vajda@gmail.com
--]]
local skybox_defs = {
everness_cursed_lands = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#89adb1',
day_horizon = '#a9cdd1',
dawn_sky = '#a5c9cd',
dawn_horizon = '#aaced2',
night_sky = '#416569',
night_horizon = '#6a8e92',
indoors = '#4a6e72',
fog_sun_tint = '#7ca0a4',
fog_moon_tint = '#7da1a5'
}
},
sun_parameters = {
texture = 'everness_cursed_lands_sun.png',
scale = 1.57,
sunrise = 'everness_cursed_lands_sunrisebg.png',
tonemap = 'everness_cursed_lands_sun_tonemap.png'
},
moon_parameters = {
texture = 'everness_cursed_lands_moon.png',
tonemap = 'everness_cursed_lands_moon_tonemap.png'
},
cloud_parameters = {
density = 0.7,
color = '#a9cdd1e5',
speed = { x = -2, z = -2 }
}
},
everness_cursed_lands_dunes = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#89adb1',
day_horizon = '#a9cdd1',
dawn_sky = '#a5c9cd',
dawn_horizon = '#aaced2',
night_sky = '#416569',
night_horizon = '#6a8e92',
indoors = '#4a6e72',
fog_sun_tint = '#7ca0a4',
fog_moon_tint = '#7da1a5'
}
},
sun_parameters = {
texture = 'everness_cursed_lands_sun.png',
scale = 1.57,
sunrise = 'everness_cursed_lands_sunrisebg.png',
tonemap = 'everness_cursed_lands_sun_tonemap.png'
},
moon_parameters = {
texture = 'everness_cursed_lands_moon.png',
tonemap = 'everness_cursed_lands_moon_tonemap.png'
},
cloud_parameters = {
density = 0.7,
color = '#a9cdd1e5',
speed = { x = -2, z = -2 }
}
},
everness_cursed_lands_swamp = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#89adb1',
day_horizon = '#a9cdd1',
dawn_sky = '#a5c9cd',
dawn_horizon = '#aaced2',
night_sky = '#416569',
night_horizon = '#6a8e92',
indoors = '#4a6e72',
fog_sun_tint = '#7ca0a4',
fog_moon_tint = '#7da1a5'
}
},
sun_parameters = {
texture = 'everness_cursed_lands_sun.png',
scale = 1.57,
sunrise = 'everness_cursed_lands_sunrisebg.png',
tonemap = 'everness_cursed_lands_sun_tonemap.png'
},
moon_parameters = {
texture = 'everness_cursed_lands_moon.png',
tonemap = 'everness_cursed_lands_moon_tonemap.png'
},
cloud_parameters = {
density = 0.7,
color = '#a9cdd1e5',
speed = { x = -2, z = -2 }
}
},
everness_cursed_lands_ocean = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#89adb1',
day_horizon = '#a9cdd1',
dawn_sky = '#a5c9cd',
dawn_horizon = '#aaced2',
night_sky = '#416569',
night_horizon = '#6a8e92',
indoors = '#4a6e72',
fog_sun_tint = '#7ca0a4',
fog_moon_tint = '#7da1a5'
}
},
sun_parameters = {
texture = 'everness_cursed_lands_sun.png',
scale = 1.57,
sunrise = 'everness_cursed_lands_sunrisebg.png',
tonemap = 'everness_cursed_lands_sun_tonemap.png'
},
moon_parameters = {
texture = 'everness_cursed_lands_moon.png',
tonemap = 'everness_cursed_lands_moon_tonemap.png'
},
cloud_parameters = {
density = 0.7,
color = '#a9cdd1e5',
speed = { x = -2, z = -2 }
}
},
everness_cursed_lands_under = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#89adb1',
day_horizon = '#a9cdd1',
dawn_sky = '#a5c9cd',
dawn_horizon = '#aaced2',
night_sky = '#416569',
night_horizon = '#6a8e92',
indoors = '#4a6e72',
fog_sun_tint = '#7ca0a4',
fog_moon_tint = '#7da1a5'
}
},
sun_parameters = {
texture = 'everness_cursed_lands_sun.png',
scale = 1.57,
sunrise = 'everness_cursed_lands_sunrisebg.png',
tonemap = 'everness_cursed_lands_sun_tonemap.png'
},
moon_parameters = {
texture = 'everness_cursed_lands_moon.png',
tonemap = 'everness_cursed_lands_moon_tonemap.png'
},
cloud_parameters = {
density = 0.7,
color = '#a9cdd1e5',
speed = { x = -2, z = -2 }
}
},
everness_coral_forest = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#c492a5',
day_sky = '',
day_horizon = '#e4b2c5',
dawn_sky = '#e0aec1',
dawn_horizon = '#e5b3c6',
night_sky = '#7c4a5d',
night_horizon = '#a57386',
indoors = '#855366',
fog_sun_tint = '#b78598',
fog_moon_tint = '#b88699'
}
},
sun_parameters = {
texture = 'everness_coral_forest_sun.png',
scale = 1.57,
tonemap = 'everness_coral_forest_sun_tonemap.png'
},
},
everness_coral_forest_dunes = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#c492a5',
day_sky = '',
day_horizon = '#e4b2c5',
dawn_sky = '#e0aec1',
dawn_horizon = '#e5b3c6',
night_sky = '#7c4a5d',
night_horizon = '#a57386',
indoors = '#855366',
fog_sun_tint = '#b78598',
fog_moon_tint = '#b88699'
}
},
sun_parameters = {
texture = 'everness_coral_forest_sun.png',
scale = 1.57,
tonemap = 'everness_coral_forest_sun_tonemap.png'
},
},
everness_coral_forest_ocean = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#c492a5',
day_sky = '',
day_horizon = '#e4b2c5',
dawn_sky = '#e0aec1',
dawn_horizon = '#e5b3c6',
night_sky = '#7c4a5d',
night_horizon = '#a57386',
indoors = '#855366',
fog_sun_tint = '#b78598',
fog_moon_tint = '#b88699'
}
},
sun_parameters = {
texture = 'everness_coral_forest_sun.png',
scale = 1.57,
tonemap = 'everness_coral_forest_sun_tonemap.png'
},
},
everness_coral_forest_under = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#c492a5',
day_sky = '',
day_horizon = '#e4b2c5',
dawn_sky = '#e0aec1',
dawn_horizon = '#e5b3c6',
night_sky = '#7c4a5d',
night_horizon = '#a57386',
indoors = '#855366',
fog_sun_tint = '#b78598',
fog_moon_tint = '#b88699'
}
},
},
everness_bamboo_forest = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#5dd35d',
day_sky = '',
day_horizon = '#7df37d',
-- dawn_sky = '#79ef79',
dawn_sky = '',
dawn_horizon = '#7ef47e',
-- night_sky = '#158b15',
night_sky = '',
night_horizon = '#3eb43e',
indoors = '#1e941e',
fog_sun_tint = '#50c650',
fog_moon_tint = '#51c751'
}
},
},
everness_bamboo_forest_under = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#5dd35d',
day_sky = '',
day_horizon = '#7df37d',
-- dawn_sky = '#79ef79',
dawn_sky = '',
dawn_horizon = '#7ef47e',
-- night_sky = '#158b15',
night_sky = '',
night_horizon = '#3eb43e',
indoors = '#1e941e',
fog_sun_tint = '#50c650',
fog_moon_tint = '#51c751'
}
},
},
everness_frosted_icesheet = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#9da4aa',
day_horizon = '#bdc4ca',
dawn_sky = '#b9c0c6',
dawn_horizon = '#bec5cb',
night_sky = '#555c62',
night_horizon = '#7e858b',
indoors = '#5e656b',
fog_sun_tint = '#90979d',
fog_moon_tint = '#91989e'
}
},
},
everness_frosted_icesheet_ocean = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#9da4aa',
day_horizon = '#bdc4ca',
dawn_sky = '#b9c0c6',
dawn_horizon = '#bec5cb',
night_sky = '#555c62',
night_horizon = '#7e858b',
indoors = '#5e656b',
fog_sun_tint = '#90979d',
fog_moon_tint = '#91989e'
}
},
},
everness_frosted_icesheet_under = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#9da4aa',
day_horizon = '#bdc4ca',
dawn_sky = '#b9c0c6',
dawn_horizon = '#bec5cb',
night_sky = '#555c62',
night_horizon = '#7e858b',
indoors = '#5e656b',
fog_sun_tint = '#90979d',
fog_moon_tint = '#91989e'
}
},
},
everness_crystal_forest = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#b992c5',
day_sky = '',
day_horizon = '#d9b2e5',
dawn_sky = '#d5aee1',
dawn_horizon = '#dab3e6',
night_sky = '#714a7d',
night_horizon = '#9a73a6',
indoors = '#7a5386',
fog_sun_tint = '#ac85b8',
fog_moon_tint = '#ad86b9'
}
},
moon_parameters = {
texture = 'everness_crystal_forest_moon.png',
tonemap = 'everness_crystal_forest_moon_tonemap.png'
},
star_parameters = {
count = 6000,
scale = 0.5
}
},
everness_crystal_forest_dunes = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#b992c5',
day_sky = '',
day_horizon = '#d9b2e5',
dawn_sky = '#d5aee1',
dawn_horizon = '#dab3e6',
night_sky = '#714a7d',
night_horizon = '#9a73a6',
indoors = '#7a5386',
fog_sun_tint = '#ac85b8',
fog_moon_tint = '#ad86b9'
}
},
moon_parameters = {
texture = 'everness_crystal_forest_moon.png',
tonemap = 'everness_crystal_forest_moon_tonemap.png'
},
star_parameters = {
count = 6000,
scale = 0.5
}
},
everness_crystal_forest_shore = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#b992c5',
day_sky = '',
day_horizon = '#d9b2e5',
dawn_sky = '#d5aee1',
dawn_horizon = '#dab3e6',
night_sky = '#714a7d',
night_horizon = '#9a73a6',
indoors = '#7a5386',
fog_sun_tint = '#ac85b8',
fog_moon_tint = '#ad86b9'
}
},
moon_parameters = {
texture = 'everness_crystal_forest_moon.png',
tonemap = 'everness_crystal_forest_moon_tonemap.png'
},
star_parameters = {
count = 6000,
scale = 0.5
}
},
everness_crystal_forest_ocean = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#b992c5',
day_sky = '',
day_horizon = '#d9b2e5',
dawn_sky = '#d5aee1',
dawn_horizon = '#dab3e6',
night_sky = '#714a7d',
night_horizon = '#9a73a6',
indoors = '#7a5386',
fog_sun_tint = '#ac85b8',
fog_moon_tint = '#ad86b9'
}
},
moon_parameters = {
texture = 'everness_crystal_forest_moon.png',
tonemap = 'everness_crystal_forest_moon_tonemap.png'
},
star_parameters = {
count = 6000,
scale = 0.5
}
},
everness_crystal_forest_under = {
sky_parameters = {
type = 'regular',
sky_color = {
-- day_sky = '#b992c5',
day_sky = '',
day_horizon = '#d9b2e5',
dawn_sky = '#d5aee1',
dawn_horizon = '#dab3e6',
night_sky = '#714a7d',
night_horizon = '#9a73a6',
indoors = '#7a5386',
fog_sun_tint = '#ac85b8',
fog_moon_tint = '#ad86b9'
}
},
star_parameters = {
count = 6000,
scale = 0.5
}
},
everness_forsaken_desert = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#d5946e',
day_horizon = '#f5b48e',
dawn_sky = '#f1b08a',
dawn_horizon = '#f6b58f',
night_sky = '#8d4c26',
night_horizon = '#b6754f',
indoors = '#96552f',
fog_sun_tint = '#c88761',
fog_moon_tint = '#c98862'
}
},
sun_parameters = {
texture = 'everness_forsaken_desert_sun.png',
scale = 1.57,
tonemap = 'everness_forsaken_desert_sun_tonemap.png'
},
},
everness_forsaken_desert_ocean = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#d5946e',
day_horizon = '#f5b48e',
dawn_sky = '#f1b08a',
dawn_horizon = '#f6b58f',
night_sky = '#8d4c26',
night_horizon = '#b6754f',
indoors = '#96552f',
fog_sun_tint = '#c88761',
fog_moon_tint = '#c98862'
}
},
sun_parameters = {
texture = 'everness_forsaken_desert_sun.png',
scale = 1.57,
tonemap = 'everness_forsaken_desert_sun_tonemap.png'
},
},
everness_forsaken_desert_under = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#d5946e',
day_horizon = '#f5b48e',
dawn_sky = '#f1b08a',
dawn_horizon = '#f6b58f',
night_sky = '#8d4c26',
night_horizon = '#b6754f',
indoors = '#96552f',
fog_sun_tint = '#c88761',
fog_moon_tint = '#c98862'
}
}
},
everness_baobab_savanna = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#c4a156',
day_horizon = '#e4c176',
dawn_sky = '#e0bd72',
dawn_horizon = '#e5c277',
night_sky = '#7c590e',
night_horizon = '#a58237',
indoors = '#856217',
fog_sun_tint = '#b79449',
fog_moon_tint = '#b8954a'
}
}
},
everness_forsaken_tundra = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#a3a49f',
-- day_sky = '#caa339',
day_horizon = '#eac359',
dawn_sky = '#e6bf55',
dawn_horizon = '#ebc45a',
-- night_sky = '#5b5c57',
night_sky = '#7c5b01',
night_horizon = '#ab841a',
indoors = '#896401',
fog_sun_tint = '#bd962c',
fog_moon_tint = '#be972d'
}
}
},
everness_forsaken_tundra_beach = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#a3a49f',
-- day_sky = '#caa339',
day_horizon = '#eac359',
dawn_sky = '#e6bf55',
dawn_horizon = '#ebc45a',
-- night_sky = '#5b5c57',
night_sky = '#7c5b01',
night_horizon = '#ab841a',
indoors = '#896401',
fog_sun_tint = '#bd962c',
fog_moon_tint = '#be972d'
}
}
},
everness_forsaken_tundra_ocean = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#a3a49f',
-- day_sky = '#caa339',
day_horizon = '#eac359',
dawn_sky = '#e6bf55',
dawn_horizon = '#ebc45a',
-- night_sky = '#5b5c57',
night_sky = '#7c5b01',
night_horizon = '#ab841a',
indoors = '#896401',
fog_sun_tint = '#bd962c',
fog_moon_tint = '#be972d'
}
}
},
everness_forsaken_tundra_under = {
sky_parameters = {
type = 'regular',
sky_color = {
day_sky = '#a3a49f',
-- day_sky = '#caa339',
day_horizon = '#eac359',
dawn_sky = '#e6bf55',
dawn_horizon = '#ebc45a',
-- night_sky = '#5b5c57',
night_sky = '#7c5b01',
night_horizon = '#ab841a',
indoors = '#896401',
fog_sun_tint = '#bd962c',
fog_moon_tint = '#be972d'
}
}
}
}
local function should_flip(player)
local player_meta = player:get_meta()
local player_time = player_meta:get_int('everness_timeofday')
-- 0 not defined (for player meta)
-- 1 morning
-- 2 afternoon
local current_time = minetest.get_timeofday() < 0.5 and 1 or 2
local should_flip = current_time ~= player_time
player_meta:set_int('everness_timeofday', current_time)
return {
should_flip = should_flip,
current_time = current_time
}
end
local timer = 0
minetest.register_globalstep(function(dtime)
@ -44,36 +655,66 @@ minetest.register_globalstep(function(dtime)
return
end
local should_flip = should_flip(player)
-- flip sun/moon when morning/afternoon
if player_biome_name == biome_name and should_flip then
if skybox_defs[biome_name] then
if skybox_defs[biome_name].sun_parameters then
local sun_params = table.copy(skybox_defs[biome_name].sun_parameters)
if should_flip.current_time == 2 then
sun_params.texture = sun_params.texture .. '^[transformFY'
end
player:set_sun(sun_params)
end
-- if skybox_defs[biome_name].moon_parameters then
-- player:set_moon(skybox_defs[biome_name].moon_parameters)
-- else
-- player:set_moon()
-- end
end
end
if player_biome_name ~= biome_name then
player_meta:set_string('everness_biome_name', biome_name)
if Everness.skybox.biomes[biome_name] then
if Everness.skybox.biomes[biome_name].sun_parameters then
player:set_sun(Everness.skybox.biomes[biome_name].sun_parameters)
if skybox_defs[biome_name] then
if skybox_defs[biome_name].sun_parameters then
local sun_params = table.copy(skybox_defs[biome_name].sun_parameters)
-- flip sun when afternoon
if should_flip.current_time == 2 then
sun_params.texture = sun_params.texture .. '^[transformFY'
end
player:set_sun(sun_params)
else
player:set_sun()
end
if Everness.skybox.biomes[biome_name].moon_parameters then
player:set_moon(Everness.skybox.biomes[biome_name].moon_parameters)
if skybox_defs[biome_name].moon_parameters then
player:set_moon(skybox_defs[biome_name].moon_parameters)
else
player:set_moon()
end
if Everness.skybox.biomes[biome_name].sky_parameters then
player:set_sky(Everness.skybox.biomes[biome_name].sky_parameters)
if skybox_defs[biome_name].sky_parameters then
player:set_sky(skybox_defs[biome_name].sky_parameters)
else
player:set_sky()
end
if Everness.skybox.biomes[biome_name].cloud_parameters then
player:set_clouds(Everness.skybox.biomes[biome_name].cloud_parameters)
if skybox_defs[biome_name].cloud_parameters then
player:set_clouds(skybox_defs[biome_name].cloud_parameters)
else
player:set_clouds()
end
if Everness.skybox.biomes[biome_name].star_parameters then
player:set_stars(Everness.skybox.biomes[biome_name].star_parameters)
if skybox_defs[biome_name].star_parameters then
player:set_stars(skybox_defs[biome_name].star_parameters)
else
player:set_stars()
end
@ -131,4 +772,5 @@ minetest.register_on_joinplayer(function(player, last_login)
player_meta:set_string('everness_biome_name', '')
player_meta:set_int('everness_is_underground', 0)
player_meta:set_int('everness_timeofday', 0)
end)

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 B

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 B