[package] name = "raea-render" version = "0.1.0" edition = "2024" license = "FSL-1.1-ALv2" publish = false description = "raea's render engine: an edit's rows drawn by Bevy (3D) or the direct GPU path, its sound mixed, its video encoded" [dependencies] dunce = "1" # a frame's rows as the passes read them (FrameRows, the edit, the clock, row helpers, bevy_api) raea-sys-frame = { path = "../../systems/frame" } # the engine's shaders read from files as an Engine opens, and their constants set from TypeScript (NB5b, NB1a) raea-sys-engine-shaders = { path = "../../systems/engine-shaders" } # a part held where a hand has it, and wireframe (the app's scene inspector) raea-sys-hold = { path = "../../systems/hold" } # the passes, each a crate of its own (systems/) raea-sys-splat = { path = "../../systems/splat" } raea-sys-sprite = { path = "../../systems/sprite" } # soft shadows (experimental_pbr_pcss) are under the native feature with raea-runtime-scene3d/pcss: WebGPU refuses their sampling bevy = { version = "=0.20.0", default-features = false, features = ["std", "default_app", "multi_threaded", "3d_bevy_render", "ui_bevy_render", "png", "tonemapping_luts", "ktx2", "zstd_rust"] } image = { version = "0.25", default-features = false, features = ["png", "jpeg", "hdr"] } # an edit as rows keyed per frame, and 3D shapes as values (docs/media.feature M2) raea-core-facts = { path = "../../core/facts" } raea-core-program = { path = "../../core/program" } # procedural surfaces on a mesh row (`proc`) raea-sys-procmat = { path = "../../systems/procmat" } raea-core-shape = { path = "../../core/shape" } # text in the 3D world (): each glyph a lit, shaded entity raea-sys-text3d = { path = "../../systems/text3d" } raea-runtime-gpuframe = { path = "../../runtime/gpuframe", optional = true } raea-runtime-scene3d = { path = "../../runtime/scene3d" } raea-runtime-plugins = { path = "../../runtime/plugins" } raea-sys-screen = { path = "../../systems/screen" } raea-sys-matchmove = { path = "../../systems/matchmove" } raea-sys-grid = { path = "../../systems/grid" } # the view a camera on the Engine's target draws: the frame above its tag row, or a page's box (#130) raea-sys-viewbox = { path = "../../systems/viewbox" } raea-sys-meshseq = { path = "../../systems/meshseq" } raea-sys-environment = { path = "../../systems/environment" } raea-sys-look = { path = "../../systems/look" } raea-sys-compose = { path = "../../systems/compose" } raea-sys-material = { path = "../../systems/material" } raea-sys-toon = { path = "../../systems/toon" } # raea's modules as Bevy plugins (RaeaPlugins), a crate of their own raea-render-plugins = { path = "plugins" } raea-sys-memtally = { path = "../../systems/memtally" } raea-sys-shader = { path = "../../systems/shader" } # three.js's shaders: a ShaderMaterial's GLSL and a node material's WGSL (docs/r3f.feature R3F11) raea-sys-three-shader = { path = "../../systems/three-shader" } raea-sys-post = { path = "../../systems/post" } raea-sys-fog = { path = "../../systems/fog" } # a field of grass made in tiles by distance () raea-sys-grass = { path = "../../systems/grass" } serde_json = { version = "1", features = ["float_roundtrip"] } # the direct render's views, the 2D rows, clips' masks and the paint device (runtime/view) raea-runtime-view = { path = "../../runtime/view", optional = true } raea-sys-page = { path = "../../systems/page", optional = true } # the shared device; its passes' errors, stalls and latency in the run's trace, as raea-render's raea-gpu-device = { path = "../../gpu/device", optional = true } raea-io-trace = { path = "../../io/trace", optional = true } # the same wgpu Bevy uses (the NV12 pass records on its device) wgpu = "=30.0.1" bytemuck = "1" # the media plane: clips decode through a MediaBackend (soft everywhere, apple on Apple) raea-io-media = { path = "../../io/media", default-features = false, features = ["soft-audio", "apple"], optional = true } # Bevy's Solari and MetalFX's denoiser on it (the raytracing feature) raea-render-raytrace = { path = "raytrace", optional = true } [features] # native: everything that only exists to render on the machine itself (clips' decoders, the GPU frame path and its # traces, the direct views, and Bevy's built-in font, JPEG, SMAA's and area lights' tables and gamepads, which a # page's download goes without); without it raea-render is the program format and the 3D engine, which is what a browser build needs (docs/web-export.md, milestone 1) native = ["bevy/default_font", "bevy/jpeg", "bevy/smaa_luts", "bevy/area_light_luts", "bevy/bevy_gilrs", "dep:raea-sys-page", "bevy/experimental_pbr_pcss", "raea-runtime-scene3d/pcss", "dep:raea-runtime-gpuframe", "dep:raea-runtime-view", "raea-sys-matchmove/native", "raea-sys-frame/native", "raea-sys-splat/native", "raea-sys-material/native", "raea-sys-text3d/native", "dep:raea-io-media", "dep:raea-gpu-device", "dep:raea-io-trace"] # web: the 3D engine on WebGPU in a browser (wasm32-unknown-unknown, without native) web = ["bevy/webgpu"] # AV1 (dav1d decode, rav1e encode) as a media backend: on by default; an exported game's player goes without it # (lightspeed R7: about 1 MB of code no game uses) default = ["native", "h264", "av1", "scripts", "network"] # Bevy's Solari, ray-traced lighting and its reference path tracer (docs/raytracing.feature RT3), and MetalFX's # denoiser on it on the Mac (RT4) raytracing = ["native", "dep:raea-render-raytrace"] # the soft backend's H.264 (openh264): mezzanines, raea-render export's GOPs, portable video decode; an exported game's # player goes without it and decodes video on the platform (lightspeed R7) h264 = ["native", "raea-io-media/h264"] av1 = ["native", "raea-io-media/av1"] # an HTML composition's