MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / setVolumeAbsorption

Method setVolumeAbsorption

Source/Falcor/Scene/Material/BasicMaterial.cpp:548–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546 }
547
548 void BasicMaterial::setVolumeAbsorption(const float3& volumeAbsorption)
549 {
550 if (any(mData.volumeAbsorption != (float16_t3)volumeAbsorption))
551 {
552 mData.volumeAbsorption = (float16_t3)volumeAbsorption;
553 markUpdates(UpdateFlags::DataChanged);
554 }
555 }
556
557 void BasicMaterial::setVolumeScattering(const float3& volumeScattering)
558 {

Callers 2

convertMethod · 0.80
buildShapeFunction · 0.80

Calls 1

anyFunction · 0.50

Tested by

no test coverage detected