Skip to main content

2 posts tagged with "scripting"

View All Tags

Terrain generator

· One min read

Added the ability to write Rust "scripts" (basically crates that the engine will run to get model output from) and added a voxel terrain with some basic procedural noise. I think of it as a "script" since it uses a blanket important use scriptlib::*; which brings in a lot of utilities to keep the code itself concise.

Also switched the WGPU to prefer linear RGB color until I progress a bit further and want to handle sRGB correctly.

alt text

Rust generator "scripts"

· One min read

Updated the code base to run Rust code to generate models. The below heightmap is a combination of sin functions and noise functions, generated in Rust code.

alt text