Implements tree visibility occlusion system.
Adds tree fading based on camera line of sight. Trees now fade out when they obstruct the player's view, improving visibility. Also includes several fixes: - Fixes tree distribution. - Adds a see-through shader. - Adds camera and occlusion scripts.
This commit is contained in:
parent
a1efaf6294
commit
f98773237e
10 changed files with 314 additions and 137 deletions
|
|
@ -44,7 +44,7 @@ static func calculate_tree_distribution(tree_preferences: Dictionary, density: f
|
|||
return distribution
|
||||
|
||||
# Calculate total number of trees for this cell
|
||||
var total_trees = int((density / 2) * 10) + randi_range(1, 3)
|
||||
var total_trees = int((density / 5) * 10) + randi_range(1, 2)
|
||||
#var total_trees = int((density - 0.6) * 25) + randi_range(3, 8)
|
||||
|
||||
# Normalize the chances to get proportions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue