pub struct RenderSettingsPatch {Show 48 fields
pub ambient_light: Option<[f32; 4]>,
pub bloom_enabled: Option<bool>,
pub bloom_intensity: Option<f32>,
pub bloom_threshold: Option<f32>,
pub bloom_knee: Option<f32>,
pub bloom_filter_radius: Option<f32>,
pub ssao_enabled: Option<bool>,
pub ssao_radius: Option<f32>,
pub ssao_intensity: Option<f32>,
pub ssao_bias: Option<f32>,
pub ssao_sample_count: Option<u32>,
pub ssgi_enabled: Option<bool>,
pub ssgi_radius: Option<f32>,
pub ssgi_intensity: Option<f32>,
pub ssgi_max_steps: Option<u32>,
pub ssr_enabled: Option<bool>,
pub ssr_max_steps: Option<u32>,
pub ssr_thickness: Option<f32>,
pub ssr_max_distance: Option<f32>,
pub ssr_stride: Option<f32>,
pub ssr_fade_start: Option<f32>,
pub ssr_fade_end: Option<f32>,
pub ssr_intensity: Option<f32>,
pub fog_enabled: Option<bool>,
pub fog_color: Option<[f32; 3]>,
pub fog_start: Option<f32>,
pub fog_end: Option<f32>,
pub dof_enabled: Option<bool>,
pub dof_focus_distance: Option<f32>,
pub dof_focus_range: Option<f32>,
pub dof_max_blur_radius: Option<f32>,
pub dof_quality: Option<u32>,
pub taa_enabled: Option<bool>,
pub render_scale: Option<f32>,
pub ibl_blend_factor: Option<f32>,
pub unlit_mode: Option<bool>,
pub selection_outline_enabled: Option<bool>,
pub selection_outline_color: Option<[f32; 4]>,
pub exposure: Option<f32>,
pub saturation: Option<f32>,
pub contrast: Option<f32>,
pub brightness: Option<f32>,
pub gamma: Option<f32>,
pub show_grid: Option<bool>,
pub show_normals: Option<bool>,
pub ssao_visualization: Option<bool>,
pub navmesh_debug: Option<bool>,
pub pbr_debug_index: Option<u32>,
}Expand description
A partial update to the world’s render and post-processing settings. Every
field is optional; only the set ones change. Read the current values from
get_editor_state (the render block), then send back just what you want to
change.
Fields§
§ambient_light: Option<[f32; 4]>§bloom_enabled: Option<bool>§bloom_intensity: Option<f32>§bloom_threshold: Option<f32>§bloom_knee: Option<f32>§bloom_filter_radius: Option<f32>§ssao_enabled: Option<bool>§ssao_radius: Option<f32>§ssao_intensity: Option<f32>§ssao_bias: Option<f32>§ssao_sample_count: Option<u32>§ssgi_enabled: Option<bool>§ssgi_radius: Option<f32>§ssgi_intensity: Option<f32>§ssgi_max_steps: Option<u32>§ssr_enabled: Option<bool>§ssr_max_steps: Option<u32>§ssr_thickness: Option<f32>§ssr_max_distance: Option<f32>§ssr_stride: Option<f32>§ssr_fade_start: Option<f32>§ssr_fade_end: Option<f32>§ssr_intensity: Option<f32>§fog_enabled: Option<bool>§fog_color: Option<[f32; 3]>§fog_start: Option<f32>§fog_end: Option<f32>§dof_enabled: Option<bool>§dof_focus_distance: Option<f32>§dof_focus_range: Option<f32>§dof_max_blur_radius: Option<f32>§dof_quality: Option<u32>Depth-of-field quality: 0 low, 1 medium, 2 high.
taa_enabled: Option<bool>§render_scale: Option<f32>§ibl_blend_factor: Option<f32>§unlit_mode: Option<bool>§selection_outline_enabled: Option<bool>§selection_outline_color: Option<[f32; 4]>§exposure: Option<f32>§saturation: Option<f32>§contrast: Option<f32>§brightness: Option<f32>§gamma: Option<f32>§show_grid: Option<bool>§show_normals: Option<bool>§ssao_visualization: Option<bool>§pbr_debug_index: Option<u32>PBR debug visualization index (0 is off).
Trait Implementations§
Source§impl Clone for RenderSettingsPatch
impl Clone for RenderSettingsPatch
Source§fn clone(&self) -> RenderSettingsPatch
fn clone(&self) -> RenderSettingsPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderSettingsPatch
impl Debug for RenderSettingsPatch
Source§impl Default for RenderSettingsPatch
impl Default for RenderSettingsPatch
Source§fn default() -> RenderSettingsPatch
fn default() -> RenderSettingsPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RenderSettingsPatch
impl<'de> Deserialize<'de> for RenderSettingsPatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RenderSettingsPatch
impl RefUnwindSafe for RenderSettingsPatch
impl Send for RenderSettingsPatch
impl Sync for RenderSettingsPatch
impl Unpin for RenderSettingsPatch
impl UnsafeUnpin for RenderSettingsPatch
impl UnwindSafe for RenderSettingsPatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<T> FromFormData for Twhere
T: DeserializeOwned,
impl<T> FromFormData for Twhere
T: DeserializeOwned,
Source§fn from_event(ev: &Event) -> Result<T, FromFormDataError>
fn from_event(ev: &Event) -> Result<T, FromFormDataError>
Tries to deserialize the data, given only the
submit event.Source§impl<CustErr, T, Request> FromReq<GetUrl, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<GetUrl, Request, CustErr> for T
Source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
Source§impl<CustErr, T, Request> FromReq<Json, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<Json, Request, CustErr> for T
Source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
Source§impl<CustErr, T, Request> FromReq<PostUrl, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<PostUrl, Request, CustErr> for T
Source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
Source§impl<CustErr, T, Response> FromRes<Json, Response, CustErr> for T
impl<CustErr, T, Response> FromRes<Json, Response, CustErr> for T
Source§async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the outputs from a response.
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<CustErr, T, Response> IntoRes<Json, Response, CustErr> for T
impl<CustErr, T, Response> IntoRes<Json, Response, CustErr> for T
Source§async fn into_res(self) -> Result<Response, ServerFnError<CustErr>>
async fn into_res(self) -> Result<Response, ServerFnError<CustErr>>
Attempts to serialize the output into an HTTP response.
Source§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> SerializableAny for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.