omni::avreality::rain::WetnessController
Defined in omni/avreality/rain/WetnessController.h
Functions
WetnessController(omni::usd::UsdContext *usdContext=nullptr): Create a new scene wetness controller.
applyGlobalPorosity(float porosity): Apply porosity value
porosityto all SimPBR primitives supporting porosity.applyGlobalPorosityScale(float porosityScale): Apply porosityScale value
porosityScaleto all SimPBR primitives supporting porosity.applyGlobalWaterAccumulation(float waterAccumulation): Apply water accumulation value
waterAccumulationto all SimPBR primitives supporting accumulation.applyGlobalWaterAccumulationScale(float accumulationScale): Apply accumulationScale value
accumulationScaleto all SimPBR primitives supporting accumulation.applyGlobalWaterAlbedo(carb::ColorRgb waterAlbedo): Apply albedo value
waterAlbedoto all SimPBR primitives supporting accumulation.applyGlobalWaterTransparency(float waterTransparency): Apply water transparency value
waterTransoarencyto all SimPBR primitives supporting accumulation.applyGlobalWetness(float wetness): Apply wetness value
wetnessto all SimPBR primitives supporting wetness.applyGlobalWetnessState(bool state): Set wetness state to
stateto all SimPBR primitives supporting wetness.loadShadersParameters(omni::usd::UsdContext *usdContext=nullptr): Load shader parameters default values for USD shader when those values are not authored.
~WetnessController(): Destroys this WetnessController .
-
class WetnessController
Controller for scene level wetness parameters.
Public Functions
-
inline WetnessController(omni::usd::UsdContext *usdContext = nullptr)
Create a new scene wetness controller.
-
inline ~WetnessController()
Destroys this WetnessController.
-
inline void applyGlobalWetnessState(bool state)
Set wetness state to
stateto all SimPBR primitives supporting wetness.
-
inline void applyGlobalWetness(float wetness)
Apply wetness value
wetnessto all SimPBR primitives supporting wetness.
-
inline void applyGlobalPorosity(float porosity)
Apply porosity value
porosityto all SimPBR primitives supporting porosity.
-
inline void applyGlobalPorosityScale(float porosityScale)
Apply porosityScale value
porosityScaleto all SimPBR primitives supporting porosity.
-
inline void applyGlobalWaterAlbedo(carb::ColorRgb waterAlbedo)
Apply albedo value
waterAlbedoto all SimPBR primitives supporting accumulation.
-
inline void applyGlobalWaterTransparency(float waterTransparency)
Apply water transparency value
waterTransoarencyto all SimPBR primitives supporting accumulation.
-
inline void applyGlobalWaterAccumulation(float waterAccumulation)
Apply water accumulation value
waterAccumulationto all SimPBR primitives supporting accumulation.
-
inline void applyGlobalWaterAccumulationScale(float accumulationScale)
Apply accumulationScale value
accumulationScaleto all SimPBR primitives supporting accumulation.
-
inline WetnessController(omni::usd::UsdContext *usdContext = nullptr)