Files
Leviathan/Client/Game/resource/skybox_script.lua
T
2026-06-01 12:46:52 +02:00

148 lines
3.9 KiB
Lua

-- skybox configuration script
-- by servantes
-- 2012.02.27 : created
-- ===============================================================================
-- skybox configuration
-- ===============================================================================
-- cloud type
-- 0 : 적운
-- 1 : 권적운
-- 2 : 층적운
-- cloud appear layer (구름 보이는 위치)
-- 0 : 300m
-- 1 : 500m
-- 2 : 600m
-- cloud size
-- 0 : 50m - 100m
-- 1 : 100m - 200m
-- 2 : 200m - 400m
-- 3 : 400m - 800m
-- cloud thickness (구름 한개의 층 수)
-- 0 : 2
-- 1 : 4
-- 2 : 8
-- 3 : 16
-- cloud move dir
-- 0 : 북 -> 남
-- 1 : 남 -> 북
-- 2 : 동 -> 서
-- 3 : 서 -> 동
sky_theme = { fine, cloudy, foggy, rainy, snowy }
-- -------------------------------------------------------------------------------
-- fine state
-- -------------------------------------------------------------------------------
sky_theme.fine =
{
type_cloud = 0,
appear_zone_width = 2000,
appear_zone_height = 2000,
count_cloud = 30,
appear_layer = 0,
size_cloud = 0,
tickness_cloud = 0,
dir_move_cloud = 0,
distance_view_wh = 2000,
distance_view_nx3 = "distance_view_00.nx3",
}
-- -------------------------------------------------------------------------------
-- cloudy state
-- -------------------------------------------------------------------------------
sky_theme.cloudy =
{
type_cloud = 1,
appear_zone_width = 2000,
appear_zone_height = 2000,
count_cloud = 10,
appear_layer = 1,
size_cloud = 2,
tickness_cloud = 1,
dir_move_cloud = 0,
distance_view_wh = 2000,
distance_view_nx3 = "distance_view_01.nx3",
}
-- -------------------------------------------------------------------------------
-- foggy state
-- -------------------------------------------------------------------------------
sky_theme.foggy =
{
type_cloud = 2,
appear_zone_width = 2000,
appear_zone_height = 2000,
count_cloud = 10,
appear_layer = 0,
size_cloud = 3,
tickness_cloud = 2,
dir_move_cloud = 1,
distance_view_wh = 2000,
distance_view_nx3 = "distance_view_02.nx3",
}
-- -------------------------------------------------------------------------------
-- rainy
-- -------------------------------------------------------------------------------
sky_theme.rainy =
{
type_cloud = 2,
appear_zone_width = 2000,
appear_zone_height = 2000,
count_cloud = 10,
appear_layer = 0,
size_cloud = 3,
tickness_cloud = 3,
dir_move_cloud = 0,
distance_view_wh = 2000,
distance_view_nx3 = "distance_view_03.nx3",
}
-- -------------------------------------------------------------------------------
-- snowy state
-- -------------------------------------------------------------------------------
sky_theme.snowy =
{
type_cloud = 2,
appear_zone_width = 2000,
appear_zone_height = 2000,
count_cloud = 10,
appear_layer = 1,
size_cloud = 2,
tickness_cloud = 3,
dir_move_cloud = 0,
distance_view_wh = 2000,
distance_view_nx3 = "distance_view_04.nx3",
}
-- ===============================================================================
-- function change_weather_theme : 날씨를 바꾼다.
-- ===============================================================================
-- state [ 0:맑음, 1:흐림, 2:안개, 3:비, 4:눈 ]
-- get_current_weather_theme()
-- set_current_weather_theme( theme_id, theme_property )
function change_skybox_theme_sky( theme )
if theme == 0 then
set_current_skybox_theme_sky( theme, sky_theme.fine )
elseif theme == 1 then
set_current_skybox_theme_sky( theme, sky_theme.cloudy )
elseif theme == 2 then
set_current_skybox_theme_sky( theme, sky_theme.foggy )
elseif theme == 3 then
set_current_skybox_theme_sky( theme, sky_theme.rainy )
elseif theme == 4 then
set_current_skybox_theme_sky( theme, sky_theme.snowy )
end
end