[package]
name = "roxlap-render"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
authors.workspace = true
rust-version.workspace = true
description = "Unified CPU/GPU renderer facade for the roxlap scene-graph engine — one SceneRenderer over roxlap-core opticast (softbuffer) and roxlap-gpu (wgpu), with automatic CPU fallback."
documentation = "https://docs.rs/roxlap-render"
keywords = ["voxlap", "voxel", "renderer", "wgpu", "fallback"]
categories = ["game-development", "graphics", "rendering"]
readme.workspace = true
[dependencies]
roxlap-core = { path = "../roxlap-core", version = "0.11" }
roxlap-formats = { path = "../roxlap-formats", version = "0.11" }
roxlap-scene = { path = "../roxlap-scene", version = "0.11" }
roxlap-gpu = { path = "../roxlap-gpu", version = "0.11" }
glam = { workspace = true }
rayon = { workspace = true }
raw-window-handle = "0.6"
egui = { version = "0.34", optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
softbuffer = "0.4"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "=0.2.117"
bytemuck = "1"
web-sys = { version = "0.3", features = [
"HtmlCanvasElement",
"WebGl2RenderingContext",
"WebGlBuffer",
"WebGlProgram",
"WebGlShader",
"WebGlTexture",
"WebGlUniformLocation",
"WebGlVertexArrayObject",
"console",
] }
[features]
hud = ["dep:egui", "roxlap-gpu/hud"]
[dev-dependencies]
winit = "0.30"
[lints]
workspace = true