MCPcopy Create free account
hub / github.com/DarkZek/RustCraft / draw_skylight

Function draw_skylight

client/src/systems/debugging/light_heightmap.rs:12–47  ·  view source on GitHub ↗

Get the height of the skylight heightmap of the chunk at the camera and draw cubes to show it

(
    camera: Query<&Transform, With<MainCamera>>,
    chunk_data: Res<ChunkSystem>,
    mut gizmos: Gizmos
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

to_bevy_vec3Function · 0.85
with_scaleMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected