pub struct WaterRuntime { /* private fields */ }Implementations§
Source§impl WaterRuntime
impl WaterRuntime
Sourcepub fn create(parent: &mut Gd<Node3D>) -> Self
pub fn create(parent: &mut Gd<Node3D>) -> Self
Build the proxy sphere child under parent and attach the water material.
Sourcepub fn update(
&mut self,
center: Vector3,
water_radius: f32,
p: WaterParams,
visible: bool,
)
pub fn update( &mut self, center: Vector3, water_radius: f32, p: WaterParams, visible: bool, )
Push per-frame state: planet world center, the live analytic water radius, the look params, and visibility. Rebuilds the proxy sphere only when the radius changed.
Auto Trait Implementations§
impl Freeze for WaterRuntime
impl RefUnwindSafe for WaterRuntime
impl !Send for WaterRuntime
impl !Sync for WaterRuntime
impl Unpin for WaterRuntime
impl UnsafeUnpin for WaterRuntime
impl UnwindSafe for WaterRuntime
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