More modes

This commit is contained in:
Scott Wadden 2024-03-20 22:39:27 -03:00
parent ce81c96c10
commit cfe0b9c46e
8 changed files with 229 additions and 1 deletions

View File

@ -0,0 +1,29 @@
[gd_resource type="Environment" load_steps=3 format=2]
[ext_resource path="res://textures/kloofendal_43d_clear_puresky_2k.hdr" type="Texture" id=1]
[sub_resource type="PanoramaSky" id=1]
panorama = ExtResource( 1 )
[resource]
background_mode = 2
background_sky = SubResource( 1 )
background_sky_orientation = Basis( -1, 1.52079e-08, -8.60899e-08, 0, 0.984753, 0.173958, 8.74228e-08, 0.173958, -0.984753 )
background_energy = 0.5
ambient_light_color = Color( 1, 1, 1, 1 )
ambient_light_energy = 1.5
ambient_light_sky_contribution = 0.0
fog_enabled = true
fog_color = Color( 0, 0, 0, 1 )
fog_sun_color = Color( 0.211765, 0.211765, 0.211765, 1 )
fog_depth_begin = 150.0
fog_depth_end = 200.0
fog_height_max = 50.0
tonemap_mode = 3
tonemap_white = 0.13
dof_blur_far_distance = 200.0
dof_blur_far_transition = 20.0
dof_blur_far_quality = 0
glow_enabled = true
glow_bloom = 1.0
glow_high_quality = true

View File

@ -0,0 +1,30 @@
[gd_resource type="Environment" load_steps=3 format=2]
[ext_resource path="res://textures/planet_sky.png" type="Texture" id=1]
[sub_resource type="PanoramaSky" id=1]
panorama = ExtResource( 1 )
[resource]
background_mode = 2
background_sky = SubResource( 1 )
background_sky_orientation = Basis( -1, 1.52079e-08, -8.60899e-08, 0, 0.984753, 0.173958, 8.74228e-08, 0.173958, -0.984753 )
background_energy = 0.5
ambient_light_color = Color( 1, 1, 1, 1 )
ambient_light_energy = 1.5
ambient_light_sky_contribution = 0.0
fog_enabled = true
fog_color = Color( 0, 0, 0, 1 )
fog_sun_color = Color( 0.211765, 0.211765, 0.211765, 1 )
fog_depth_begin = 150.0
fog_depth_end = 200.0
fog_height_max = 50.0
tonemap_mode = 2
tonemap_exposure = 1.02
dof_blur_far_distance = 200.0
dof_blur_far_transition = 20.0
dof_blur_far_quality = 0
glow_enabled = true
glow_bloom = 1.0
glow_blend_mode = 0
glow_high_quality = true

34
app/environments/bw.tres Normal file
View File

@ -0,0 +1,34 @@
[gd_resource type="Environment" load_steps=3 format=2]
[ext_resource path="res://textures/planet_sky.png" type="Texture" id=1]
[sub_resource type="PanoramaSky" id=1]
panorama = ExtResource( 1 )
[resource]
background_mode = 2
background_sky = SubResource( 1 )
background_sky_orientation = Basis( -1, 1.52079e-08, -8.60899e-08, 0, 0.984753, 0.173958, 8.74228e-08, 0.173958, -0.984753 )
background_energy = 0.5
ambient_light_color = Color( 1, 1, 1, 1 )
ambient_light_energy = 1.5
ambient_light_sky_contribution = 0.0
fog_enabled = true
fog_color = Color( 0, 0, 0, 1 )
fog_sun_color = Color( 0.211765, 0.211765, 0.211765, 1 )
fog_depth_begin = 150.0
fog_depth_end = 200.0
fog_height_max = 50.0
tonemap_mode = 3
tonemap_white = 0.13
auto_exposure_enabled = true
ss_reflections_enabled = true
ssao_enabled = true
dof_blur_far_distance = 200.0
dof_blur_far_transition = 20.0
dof_blur_far_quality = 0
glow_enabled = true
glow_bloom = 1.0
glow_high_quality = true
adjustment_enabled = true
adjustment_saturation = 0.01

33
app/environments/bw2.tres Normal file
View File

@ -0,0 +1,33 @@
[gd_resource type="Environment" load_steps=3 format=2]
[ext_resource path="res://textures/planet_sky.png" type="Texture" id=1]
[sub_resource type="PanoramaSky" id=1]
panorama = ExtResource( 1 )
[resource]
background_mode = 2
background_sky = SubResource( 1 )
background_sky_orientation = Basis( -1, 1.52079e-08, -8.60899e-08, 0, 0.984753, 0.173958, 8.74228e-08, 0.173958, -0.984753 )
background_energy = 0.5
ambient_light_color = Color( 1, 1, 1, 1 )
ambient_light_energy = 1.5
ambient_light_sky_contribution = 0.0
fog_enabled = true
fog_color = Color( 0, 0, 0, 1 )
fog_sun_color = Color( 0.211765, 0.211765, 0.211765, 1 )
fog_depth_begin = 150.0
fog_depth_end = 200.0
fog_height_max = 50.0
tonemap_mode = 3
tonemap_white = 0.13
ss_reflections_enabled = true
ssao_enabled = true
dof_blur_far_distance = 200.0
dof_blur_far_transition = 20.0
dof_blur_far_quality = 0
glow_enabled = true
glow_bloom = 1.0
glow_high_quality = true
adjustment_enabled = true
adjustment_saturation = 0.01

33
app/environments/bw3.tres Normal file
View File

@ -0,0 +1,33 @@
[gd_resource type="Environment" load_steps=3 format=2]
[ext_resource path="res://textures/kloofendal_43d_clear_puresky_2k.hdr" type="Texture" id=1]
[sub_resource type="PanoramaSky" id=1]
panorama = ExtResource( 1 )
[resource]
background_mode = 2
background_sky = SubResource( 1 )
background_sky_orientation = Basis( -1, 1.52079e-08, -8.60899e-08, 0, 0.984753, 0.173958, 8.74228e-08, 0.173958, -0.984753 )
background_energy = 0.5
ambient_light_color = Color( 1, 1, 1, 1 )
ambient_light_energy = 1.5
ambient_light_sky_contribution = 0.0
fog_enabled = true
fog_color = Color( 0, 0, 0, 1 )
fog_sun_color = Color( 0.211765, 0.211765, 0.211765, 1 )
fog_depth_begin = 150.0
fog_depth_end = 200.0
fog_height_max = 50.0
tonemap_mode = 3
tonemap_white = 0.13
ss_reflections_enabled = true
ssao_enabled = true
dof_blur_far_distance = 200.0
dof_blur_far_transition = 20.0
dof_blur_far_quality = 0
glow_enabled = true
glow_bloom = 1.0
glow_high_quality = true
adjustment_enabled = true
adjustment_saturation = 0.01

View File

@ -0,0 +1,31 @@
[gd_resource type="Environment" load_steps=3 format=2]
[ext_resource path="res://textures/planet_sky.png" type="Texture" id=1]
[sub_resource type="PanoramaSky" id=1]
panorama = ExtResource( 1 )
[resource]
background_mode = 2
background_sky = SubResource( 1 )
background_sky_orientation = Basis( -1, 1.52079e-08, -8.60899e-08, 0, 0.984753, 0.173958, 8.74228e-08, 0.173958, -0.984753 )
background_energy = 0.5
ambient_light_color = Color( 1, 1, 1, 1 )
ambient_light_sky_contribution = 0.0
fog_enabled = true
fog_color = Color( 0, 0, 0, 1 )
fog_sun_color = Color( 0.211765, 0.211765, 0.211765, 1 )
fog_depth_begin = 150.0
fog_depth_end = 200.0
fog_height_max = 50.0
tonemap_mode = 2
tonemap_exposure = 0.29
dof_blur_far_distance = 200.0
dof_blur_far_transition = 20.0
dof_blur_far_quality = 0
glow_enabled = true
glow_bloom = 1.0
glow_blend_mode = 0
glow_high_quality = true
adjustment_enabled = true
adjustment_saturation = 0.01

View File

@ -0,0 +1,34 @@
[gd_resource type="Environment" load_steps=3 format=2]
[ext_resource path="res://textures/planet_sky.png" type="Texture" id=1]
[sub_resource type="PanoramaSky" id=1]
panorama = ExtResource( 1 )
[resource]
background_mode = 2
background_sky = SubResource( 1 )
background_sky_orientation = Basis( -1, 1.52079e-08, -8.60899e-08, 0, 0.984753, 0.173958, 8.74228e-08, 0.173958, -0.984753 )
background_energy = 0.5
ambient_light_color = Color( 1, 1, 1, 1 )
ambient_light_energy = 0.41
ambient_light_sky_contribution = 0.0
fog_enabled = true
fog_color = Color( 0, 0, 0, 1 )
fog_sun_color = Color( 0.211765, 0.211765, 0.211765, 1 )
fog_depth_begin = 150.0
fog_depth_end = 200.0
fog_height_max = 50.0
tonemap_mode = 2
tonemap_exposure = 0.29
auto_exposure_enabled = true
ss_reflections_enabled = true
ssao_enabled = true
dof_blur_far_distance = 200.0
dof_blur_far_transition = 20.0
dof_blur_far_quality = 0
glow_enabled = true
glow_bloom = 1.0
glow_blend_mode = 0
glow_high_quality = true
adjustment_enabled = true

View File

@ -25,7 +25,10 @@ const savable_flags = {
ConsoleVisible, MouseCaptured, Flying, God, AltWalkSpeed, AltFlySpeed
}
const game_modes = ["default", "dream_mode"]
const game_modes = [
"default", "blue", "bright", "bw", "bw2", "bw3", "noir", "strange",
"dream_mode"
]
var saved_transform {.threadvar.}: Transform
var saved_rotation {.threadvar.}: float
@ -427,6 +430,7 @@ gdobj Game of Node:
load(\"res://environments/{game_modes[self.game_mode]}.tres") as
Environment
env.environment = mode_scene
logger("info", \"Changed game mode to {game_modes[self.game_mode]}")
elif EditorVisible notin state.local_flags:
if event.is_action_pressed("toggle_mouse_captured"):
state.set_flag MouseCaptured, MouseCaptured notin state.local_flags