Type Alias three_d::renderer::effect::WaterMaterial
source · pub type WaterMaterial = WaterEffect;👎Deprecated: renamed to WaterEffect
Expand description
An effect that simulates a water surface and should therefore only be applied to a water surface geometry. This effect needs the rendered scene (without the water surface) in a color and depth texture to be able to add reflections and refractions.
Aliased Type§
struct WaterMaterial {
pub background: Background,
pub metallic: f32,
pub roughness: f32,
pub lighting_model: LightingModel,
}Fields§
§background: BackgroundThe background of the scene which is used for reflections.
metallic: f32A value in the range [0..1] specifying how metallic the surface is.
roughness: f32A value in the range [0..1] specifying how rough the surface is.
lighting_model: LightingModelThe lighting model used when rendering this effect