pub struct LightProbeEditor {Show 13 fields
pub probe_groups: Vec<LightProbeGroup>,
pub reflection_captures: Vec<ReflectionCapture>,
pub baker_settings: LightBakerSettings,
pub active_panel: LightProbeEditorPanel,
pub debug_mode: ProbeDebugMode,
pub selected_group: Option<usize>,
pub selected_probe_id: Option<u32>,
pub selected_capture_id: Option<u32>,
pub bake_progress: f32,
pub is_baking: bool,
pub show_probe_gizmos: bool,
pub show_capture_gizmos: bool,
pub next_capture_id: u32,
}Fields§
§probe_groups: Vec<LightProbeGroup>§reflection_captures: Vec<ReflectionCapture>§baker_settings: LightBakerSettings§active_panel: LightProbeEditorPanel§debug_mode: ProbeDebugMode§selected_group: Option<usize>§selected_probe_id: Option<u32>§selected_capture_id: Option<u32>§bake_progress: f32§is_baking: bool§show_probe_gizmos: bool§show_capture_gizmos: bool§next_capture_id: u32Implementations§
Source§impl LightProbeEditor
impl LightProbeEditor
pub fn new() -> Self
pub fn add_capture(&mut self, capture: ReflectionCapture)
pub fn add_probe_group(&mut self, name: impl Into<String>) -> usize
pub fn start_bake(&mut self)
pub fn update(&mut self, dt: f32)
pub fn total_probe_count(&self) -> usize
pub fn total_reflection_memory_bytes(&self) -> u64
pub fn query_irradiance(&self, point: Vec3, normal: Vec3) -> Vec3
pub fn find_best_reflection_capture( &self, point: Vec3, ) -> Option<&ReflectionCapture>
pub fn memory_report(&self) -> String
Trait Implementations§
Source§impl Clone for LightProbeEditor
impl Clone for LightProbeEditor
Auto Trait Implementations§
impl Freeze for LightProbeEditor
impl RefUnwindSafe for LightProbeEditor
impl Send for LightProbeEditor
impl Sync for LightProbeEditor
impl Unpin for LightProbeEditor
impl UnsafeUnpin for LightProbeEditor
impl UnwindSafe for LightProbeEditor
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,
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.