A1: Style guide, palette and the woodcut print pass
docs/STYLE.md sets Tidewall's look: a drowned coast printed by hand. It has the palette, shape language, character proportions, shading, UI motifs, audio palette and a do-not-do list. - Palette (src/client/style/palette.gd) is the one table of client colours. Every colour that was scattered over the views now names its entry, with values unchanged. test_palette fails on a colour literal anywhere else in src/client or src/app, and on a palette colour the guide doesn't list. - Look sets up the sky, the salt-faded grading (saturation 0.86, contrast 1.05), the sun and the print pass, for the match view and the capture scenes. - folk_print.gdshader is one full-screen quad multiplied over the frame. It draws ink lines at depth jumps and creases (fading with distance, scaled with screen height), diagonal hatching cut into real shadow, and faint paper grain. Ground under the sea gets none. - make style-captures renders a hamlet and a dock with and without the pass. Closes #41 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,6 +32,9 @@ const CRACK_COLOUR: Color = Color(1.0, 0.0, 1.0)
|
||||
@export var prop_view: Vector3 = Vector3(10.0, 4.0, 14.0)
|
||||
## Destroy every `knock_out`th prop near the framed one, to show felled props vanish.
|
||||
@export var knock_out: int = 0
|
||||
## Draw with the woodcut print pass and graded colour (docs/STYLE.md). Off shows the
|
||||
## plain render, for before-and-after captures.
|
||||
@export var print_pass: bool = true
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
@@ -44,31 +47,13 @@ func _ready() -> void:
|
||||
environment.ambient_light_color = Color(0.5, 0.5, 0.5)
|
||||
environment.tonemap_mode = Environment.TONE_MAPPER_LINEAR
|
||||
else:
|
||||
var sky_material: ProceduralSkyMaterial = ProceduralSkyMaterial.new()
|
||||
sky_material.sky_top_color = Color(0.32, 0.5, 0.68)
|
||||
sky_material.sky_horizon_color = Color(0.82, 0.78, 0.68)
|
||||
sky_material.ground_bottom_color = Color(0.18, 0.2, 0.2)
|
||||
sky_material.ground_horizon_color = Color(0.82, 0.78, 0.68)
|
||||
var sky: Sky = Sky.new()
|
||||
sky.sky_material = sky_material
|
||||
environment.background_mode = Environment.BG_SKY
|
||||
environment.sky = sky
|
||||
environment.ambient_light_source = Environment.AMBIENT_SOURCE_SKY
|
||||
environment.ambient_light_energy = 0.45
|
||||
environment.tonemap_mode = Environment.TONE_MAPPER_FILMIC
|
||||
environment.fog_enabled = true
|
||||
environment.fog_light_color = Color(0.78, 0.78, 0.74)
|
||||
environment.fog_density = 0.0005
|
||||
environment.fog_aerial_perspective = 0.4
|
||||
environment = Look.environment(print_pass)
|
||||
var world: WorldEnvironment = WorldEnvironment.new()
|
||||
world.environment = environment
|
||||
add_child(world)
|
||||
|
||||
var sun: DirectionalLight3D = DirectionalLight3D.new()
|
||||
sun.rotation_degrees = Vector3(-35.0, -130.0, 0.0)
|
||||
sun.light_energy = 0.95
|
||||
var sun: DirectionalLight3D = Look.sun(600.0)
|
||||
sun.shadow_enabled = not crack_check
|
||||
sun.directional_shadow_max_distance = 600.0
|
||||
add_child(sun)
|
||||
|
||||
var camera: Camera3D = Camera3D.new()
|
||||
@@ -123,6 +108,8 @@ func _ready() -> void:
|
||||
add_child(camera)
|
||||
camera.look_at(look_at_point)
|
||||
camera.make_current()
|
||||
if print_pass and not crack_check:
|
||||
Look.set_sea_level(Look.add_print_pass(camera), sea_level if show_water else -1000.0)
|
||||
|
||||
var terrain: TerrainView = TerrainView.new()
|
||||
terrain.setup(island)
|
||||
|
||||
Reference in New Issue
Block a user