Cut 8: Forward+ Vulkan cutover, atmospheric scattering sky, volumetric fog, SSR, 4-split shadows, & linear HDR
This commit is contained in:
parent
c789fe8af8
commit
35626ccd02
21 changed files with 1232 additions and 227 deletions
|
|
@ -16,7 +16,7 @@ public partial class SionMapRenderer : Node3D
|
|||
{
|
||||
public const float Lod1DistanceM = 520f;
|
||||
public const float CullDistanceM = 2200f;
|
||||
public const float ShadowDistanceM = 220f;
|
||||
public const float ShadowDistanceM = 360f;
|
||||
private const int ChunkGridVerts = 129; // 128 quads per 512m chunk (4m spacing)
|
||||
|
||||
private sealed class BuildingTileEntry
|
||||
|
|
@ -203,10 +203,10 @@ public partial class SionMapRenderer : Node3D
|
|||
float grit = (hash21(floor(v_world_pos.xz * 8.0)) - 0.5) * 0.045;
|
||||
|
||||
float slope = 1.0 - clamp(v_world_normal.y, 0.0, 1.0);
|
||||
vec3 col = clamp(base_col + vec3(macro + grit * near_fade), vec3(0.0), vec3(1.0));
|
||||
vec3 col = clamp(base_col * (1.0 + macro * 1.4 + grit * 1.6 * near_fade), vec3(0.0), vec3(1.0));
|
||||
ALBEDO = col;
|
||||
ROUGHNESS = mix(0.88, 0.96, slope);
|
||||
METALLIC = 0.03;
|
||||
METALLIC = 0.02;
|
||||
}
|
||||
"""
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue