[][src]Struct rg3d::renderer::QualitySettings

pub struct QualitySettings {
    pub point_shadow_map_size: usize,
    pub point_soft_shadows: bool,
    pub point_shadows_enabled: bool,
    pub point_shadows_distance: f32,
    pub spot_shadow_map_size: usize,
    pub spot_soft_shadows: bool,
    pub spot_shadows_enabled: bool,
    pub spot_shadows_distance: f32,
    pub use_ssao: bool,
    pub ssao_radius: f32,
    pub light_scatter_enabled: bool,
}

Quality settings allows you to find optimal balance between performance and graphics quality.

Fields

point_shadow_map_size: usize

Point shadows Size of cube map face of shadow map texture in pixels.

point_soft_shadows: bool

Use or not percentage close filtering (smoothing) for point shadows.

point_shadows_enabled: bool

Point shadows enabled or not.

point_shadows_distance: f32

Maximum distance from camera to draw shadows.

spot_shadow_map_size: usize

Spot shadows Size of square shadow map texture in pixels

spot_soft_shadows: bool

Use or not percentage close filtering (smoothing) for spot shadows.

spot_shadows_enabled: bool

Spot shadows enabled or not.

spot_shadows_distance: f32

Maximum distance from camera to draw shadows.

use_ssao: bool

Whether to use screen space ambient occlusion or not.

ssao_radius: f32

Radius of sampling hemisphere used in SSAO, it defines much ambient occlusion will be in your scene.

light_scatter_enabled: bool

Global switch to enable or disable light scattering. Each light can have its own scatter switch, but this one is able to globally disable scatter.

Trait Implementations

impl Clone for QualitySettings[src]

impl Copy for QualitySettings[src]

impl Default for QualitySettings[src]

impl PartialEq<QualitySettings> for QualitySettings[src]

impl StructuralPartialEq for QualitySettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,