Skip to content

Commit

Permalink
Support real time shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariasteam committed Jul 23, 2018
1 parent 4f71b5f commit 870af65
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Scenes/Column.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ transform/local = Transform( 2.55, 0, 0, 0, 1, 0, 0, 0, 2.55, 0, -105, 0 )
layers = 1
geometry/visible = true
geometry/material_override = ExtResource( 4 )
geometry/cast_shadow = 0
geometry/receive_shadows = false
geometry/cast_shadow = 1
geometry/receive_shadows = true
geometry/range_begin = 0.0
geometry/range_end = 0.0
geometry/extra_cull_margin = 0.0
Expand All @@ -56,18 +56,18 @@ params/bake_mode = 1
params/energy = 0.45
colors/diffuse = Color( 1, 1, 1, 1 )
colors/specular = Color( 1, 1, 1, 1 )
shadow/shadow = false
shadow/shadow = true
shadow/darkening = 0.0
shadow/z_offset = 0.05
shadow/z_slope_scale = 0.0
shadow/esm_multiplier = 60.0
shadow/blur_passes = 1.0
projector = null
operator = 0
shadow/mode = 2
shadow/max_distance = 0.0
shadow/mode = 0
shadow/max_distance = 19.0
shadow/split_weight = 0.65
shadow/zoffset_scale = 2.0
shadow/zoffset_scale = 0.01

[node name="Spatial" parent="." instance=ExtResource( 6 )]

Expand Down
2 changes: 2 additions & 0 deletions Scenes/Regular_Segment.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ script/script = ExtResource( 1 )
[node name="REGULAR" parent="." instance=ExtResource( 2 )]

transform/local = Transform( 2, 0, 0, 0, 1.5, 0, 0, 0, 2, 0, -0.5, 0 )
geometry/cast_shadow = 1
geometry/receive_shadows = true


4 changes: 2 additions & 2 deletions Scenes/Segment.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ transform/local = Transform( 2, 0, 0, 0, 1.2, 0, 0, 0, 2, 0, -0.5, 0 )
layers = 1
geometry/visible = true
geometry/material_override = null
geometry/cast_shadow = 0
geometry/receive_shadows = false
geometry/cast_shadow = 1
geometry/receive_shadows = true
geometry/range_begin = 0.0
geometry/range_end = 0.0
geometry/extra_cull_margin = 0.0
Expand Down
4 changes: 2 additions & 2 deletions Scenes/Segment_Tall.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ transform/local = Transform( 1.99, 0, 0, 0, 14.9, 0, 0, 0, 1.99, 0, 3.19601, 0 )
layers = 1
geometry/visible = true
geometry/material_override = null
geometry/cast_shadow = 0
geometry/receive_shadows = false
geometry/cast_shadow = 1
geometry/receive_shadows = true
geometry/range_begin = 0.0
geometry/range_end = 0.0
geometry/extra_cull_margin = 0.0
Expand Down
1 change: 1 addition & 0 deletions engine.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ use_fragment_lighting=true

[render]

shadows_enabled=true
thread_model=2
mipmap_policy=0
thread_textures_prealloc=5
Expand Down

0 comments on commit 870af65

Please sign in to comment.