- Introduced `render-parity` crate for comparing rendered frames against reference images. - Added command-line options for specifying manifest and output directory. - Implemented image comparison metrics: mean absolute difference, maximum absolute difference, and changed pixel ratio. - Created a configuration file `cases.toml` for defining test cases with global defaults and specific parameters. - Added functionality to capture frames from `render-demo` and save diff images on discrepancies. - Updated documentation to include usage instructions and CI model for automated testing.
22 lines
592 B
TOML
22 lines
592 B
TOML
[package]
|
|
name = "render-demo"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[features]
|
|
default = []
|
|
demo = ["dep:sdl2", "dep:glow", "dep:image"]
|
|
|
|
[dependencies]
|
|
msh-core = { path = "../msh-core" }
|
|
nres = { path = "../nres" }
|
|
render-core = { path = "../render-core" }
|
|
sdl2 = { version = "0.37", optional = true, default-features = false, features = ["bundled", "static-link"] }
|
|
glow = { version = "0.16", optional = true }
|
|
image = { version = "0.25", optional = true, default-features = false, features = ["png"] }
|
|
|
|
[[bin]]
|
|
name = "parkan-render-demo"
|
|
path = "src/main.rs"
|
|
required-features = ["demo"]
|