oxiphysics_gpu/raytracing/renderconfig_traits.rs
1//! # RenderConfig - Trait Implementations
2//!
3//! This module contains trait implementations for `RenderConfig`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10use super::types::RenderConfig;
11
12impl Default for RenderConfig {
13 fn default() -> Self {
14 Self {
15 width: 800,
16 height: 600,
17 spp: 16,
18 max_depth: 8,
19 soft_shadows: true,
20 ambient_occlusion: true,
21 depth_of_field: false,
22 ao_samples: 16,
23 shadow_samples: 8,
24 background: [0.1, 0.15, 0.25],
25 ambient: [0.05, 0.05, 0.05],
26 tonemap: 3,
27 }
28 }
29}