Modification de la scene principale.

This commit is contained in:
osquallo 2018-08-20 11:10:33 +02:00
parent ba2590c2a5
commit 79a3c7293c
9 changed files with 405 additions and 303 deletions

BIN
assets/test/sky_box.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 MiB

View file

@ -2,6 +2,10 @@ extends Node
const WINDOW_TITLE_INPUT = "GUI/Settings/Menus/TabContainer/Test/ScrollContainer/VBoxContainer/TitleBox/Title"
#### Environment
var time_scale = 0.1
#### Character
var character_name = "player"
var character_color = null

View file

@ -111,5 +111,6 @@ quality/filters/anisotropic_filter_level=8
quality/shadows/filter_mode=2
quality/subsurface_scattering/quality=2
quality/subsurface_scattering/follow_surface=true
environment/default_clear_color=Color( 0, 0, 0, 1 )
quality/filters/msaa=3
environment/default_environment="res://default_env.tres"

View file

@ -114,7 +114,7 @@ func process_movement(delta):
if collision_info:
vel = vel.bounce(collision_info.normal)
var obj = collision_info.collider
if obj.is_class( "RigidBody" ) or obj.is_class( "StaticBody" ):
if obj.is_class( "RigidBody" ):
obj.sleeping = false
obj.apply_impulse( collision_info.position, -collision_info.normal*delta )
if not obj.get_node( "MeshInstance" ).get_surface_material(0).get("albedo_color") == null:

View file

@ -67,7 +67,7 @@ _sections_unfolded = [ "shader_param" ]
radius = 0.520354
[node name="Character" type="KinematicBody"]
[node name="Character" type="KinematicBody" index="0"]
transform = Transform( 0.371345, 0, 0, 0, 0.218854, 0, 0, 0, 0.371345, -0.00167466, -0.475751, 6.02408 )
input_ray_pickable = true
@ -86,7 +86,6 @@ _sections_unfolded = [ "Axis Lock", "Transform", "collision" ]
[node name="infos_spatial" type="Spatial" parent="." index="0"]
editor/display_folded = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.20802, 0 )
script = ExtResource( 2 )
@ -98,8 +97,6 @@ _sections_unfolded = [ "Mouse", "Rect", "Size Flags", "Visibility" ]
[node name="Camera_rotation_helper" type="Spatial" parent="." index="1"]
editor/display_folded = true
[node name="Camera" type="Camera" parent="Camera_rotation_helper" index="0"]
transform = Transform( 1, 0, 0, 0, 0.972208, 0.397244, 0, -0.137979, 0.972208, 0, 6.00296, 1.22667 )
@ -114,7 +111,7 @@ current = false
fov = 70.0
size = 1.0
near = 0.05
far = 100.0
far = 10000.0
_sections_unfolded = [ "Transform" ]
[node name="face_camera" type="Camera" parent="Camera_rotation_helper" index="1"]
@ -136,7 +133,6 @@ _sections_unfolded = [ "Transform" ]
[node name="MeshInstance" type="MeshInstance" parent="." index="2"]
editor/display_folded = true
transform = Transform( -0.281766, 0, -2.3459e-008, 0, 0.491282, 0, 2.46328e-008, 0, -0.26834, 0.0433697, 4.3256, 4.76837e-007 )
layers = 1
material_override = null
@ -154,7 +150,7 @@ _sections_unfolded = [ "Transform", "material" ]
[node name="Flashlight" type="SpotLight" parent="MeshInstance" index="0"]
transform = Transform( -1.74358, -6.59629e-010, 1.52425e-007, 0, 0.999973, 0.0124571, -1.60055e-007, 0.00792279, -1.83077, 0.0756185, 0.00765133, 1.31515 )
transform = Transform( -2.54929, -1.60184e-009, 3.70147e-007, 0, 2.42833, 0.0302507, -2.34015e-007, 0.0192396, -4.44583, 0.391783, -0.0857301, 1.36415 )
layers = 1
light_color = Color( 1, 1, 1, 1 )
light_energy = 2.0

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
extends WorldEnvironment
func _process(delta):
$sky_sphere.rotate( Vector3(0, 1, 0), delta*global.time_scale )
$sky_sphere.rotate( Vector3(0, 0, 1), delta*global.time_scale )
$sun.translation = Vector3( 0, 0, 0 )
$sun.rotate( Vector3(0, 1, 0), delta*global.time_scale )
$sun.rotate( Vector3(0, 0, 1), delta*global.time_scale )
$sun.translate( Vector3( 1000, 1000, 1000 ) )

View file

@ -4,11 +4,11 @@
[ext_resource path="res://assets/Game/materials/flamme_01.tres" type="QuadMesh" id=2]
[ext_resource path="res://scenes/Game/smoke.tscn" type="PackedScene" id=3]
[node name="fire_01" type="Particles"]
[node name="fire_01" type="Particles" index="0"]
layers = 1
material_override = null
cast_shadow = 0
cast_shadow = 1
extra_cull_margin = 0.0
use_in_baked_light = false
lod_min_distance = 0.0
@ -45,7 +45,7 @@ light_specular = 0.5
light_bake_mode = 1
light_cull_mask = -1
shadow_enabled = true
shadow_color = Color( 0, 0, 0, 1 )
shadow_color = Color( 1, 1, 1, 1 )
shadow_bias = 0.15
shadow_contact = 0.0
shadow_reverse_cull_face = false
@ -54,7 +54,7 @@ omni_range = 5.0
omni_attenuation = 1.0
omni_shadow_mode = 1
omni_shadow_detail = 1
_sections_unfolded = [ "Light", "Shadow" ]
_sections_unfolded = [ "Editor", "Light", "Omni", "Shadow" ]
[node name="smoke" parent="." index="1" instance=ExtResource( 3 )]