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)
10
11#[allow(unused_imports)]
12use super::functions::*;
13use super::types::RenderConfig;
14
15impl Default for RenderConfig {
16 fn default() -> Self {
17 Self {
18 width: 800,
19 height: 600,
20 spp: 16,
21 max_depth: 8,
22 soft_shadows: true,
23 ambient_occlusion: true,
24 depth_of_field: false,
25 ao_samples: 16,
26 shadow_samples: 8,
27 background: [0.1, 0.15, 0.25],
28 ambient: [0.05, 0.05, 0.05],
29 tonemap: 3,
30 }
31 }
32}