omni::avreality::rain::WetnessController

Defined in omni/avreality/rain/WetnessController.h

Functions

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 state to all SimPBR primitives supporting wetness.

inline void applyGlobalWetness(float wetness)

Apply wetness value wetness to all SimPBR primitives supporting wetness.

inline void applyGlobalPorosity(float porosity)

Apply porosity value porosity to all SimPBR primitives supporting porosity.

inline void applyGlobalPorosityScale(float porosityScale)

Apply porosityScale value porosityScale to all SimPBR primitives supporting porosity.

inline void applyGlobalWaterAlbedo(carb::ColorRgb waterAlbedo)

Apply albedo value waterAlbedo to all SimPBR primitives supporting accumulation.

inline void applyGlobalWaterTransparency(float waterTransparency)

Apply water transparency value waterTransoarency to all SimPBR primitives supporting accumulation.

inline void applyGlobalWaterAccumulation(float waterAccumulation)

Apply water accumulation value waterAccumulation to all SimPBR primitives supporting accumulation.

inline void applyGlobalWaterAccumulationScale(float accumulationScale)

Apply accumulationScale value accumulationScale to all SimPBR primitives supporting accumulation.

Public Static Functions

static inline void loadShadersParameters(omni::usd::UsdContext *usdContext = nullptr)

Load shader parameters default values for USD shader when those values are not authored.

Warning

Unstable API, subject to change.