gilgamesh

Crates.iogilgamesh
lib.rsgilgamesh
version0.4.0
sourcesrc
created_at2023-05-08 13:34:12.798936
updated_at2023-05-12 07:34:37.670485
descriptionA small 3D rendering engine built upon WGPU with the primary goal of visualizing procedural terrains.
homepage
repository
max_upload_size
id859806
size295,287
Barthélemy (BarthPaleologue)

documentation

README

Gilgamesh

Rust

A small 3D rendering engine built upon WGPU with the primary goal of visualizing procedural terrains.

Loosely based on Dr. Xu youtube series

Gilgamesh

Getting Started

Here is a quick example of how to use Gilgamesh to render a procedural terrain:

extern crate gilgamesh;

use gilgamesh::{init_gilgamesh, start_gilgamesh};
use gilgamesh::mesh::Mesh;

fn main() {
    let mut app = init_gilgamesh();

    let sphere = Mesh::new_procedural_sphere(5.0, 32, &|x, y, z| {
        f32::powi(f32::sin(60.0 * x * y * z), 2) / 2.0
    }, 0.5, &mut app.engine);

    app.scene.add_mesh(sphere);

    start_gilgamesh(app);
}
Commit count: 0

cargo fmt