omni::avreality::rain::IPuddleBaker
Defined in omni/avreality/rain/IPuddleBaker.h
Variables
assignShadersAccumulationMapTextureNames: Assign dynamic textures to the water accumulation entry in the provided shader list.
-
class IPuddleBaker
Bakes puddle into dynamic textures.
Warning
Low level ABI compatible interface. Common usage will be through the PuddleBaker::PuddleBaker() class.
Public Members
-
void (*bake)(const char *const textureName, carb::Uint2 textureDims, carb::Float2 regionMin, carb::Float2 regionMax, std::size_t puddleCount, const carb::Float2 *puddlesPositions, const float *puddlesRadii, const float *puddlesDepths)
Bake puddles to the dynamic texture
textureNameWarning
The size of puddlesPositions, puddlesRadii and puddlesDepths must match the size given as
puddleCount.- Param textureName
The name of the dynamic texture to bake into.
- Param textureDims
The dimensions of the generated texture.
- Param regionMin
The 2D world space minimum of the region the texture maps onto.
- Param regionMax
The 2D world space maximum of the region the texture maps onto.
- Param puddleCount
The number of puddles to bake.
- Param puddlesPositions
A pointer to the 2D positions of the puddles.
- Param puddlesRadii
A pointer to the radii of the puddles.
- Param puddlesDepths
A pointer to the depths of the puddles.
-
void (*assignShadersAccumulationMapTextureNames)(gsl::span<std::tuple<const char*const, const char*const>> shaderPathsAndTextureNames, const char *const usdContextName)
Assign dynamic textures to the water accumulation entry in the provided shader list.
-
void (*bake)(const char *const textureName, carb::Uint2 textureDims, carb::Float2 regionMin, carb::Float2 regionMax, std::size_t puddleCount, const carb::Float2 *puddlesPositions, const float *puddlesRadii, const float *puddlesDepths)