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

Method update

Source/Modules/USDUtils/ConvertedInput.cpp:409–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409void ConvertedTexTransform::update(const ConvertedInput& input)
410{
411 if (!input.isTextured())
412 return;
413 const Falcor::Transform& newTransform = input.texTransform;
414 if (newTransform.getMatrix() != Falcor::float4x4::identity() && transform.getMatrix() == Falcor::float4x4::identity())
415 {
416 transform = newTransform;
417 return;
418 }
419 if (newTransform.getMatrix() != transform.getMatrix())
420 {
421 Falcor::logWarning(
422 "Shader input '{}' specifies a texture transform that differs from that used on another texture, which is not supported. "
423 "Applying the first "
424 "encountered non-idenity transform to all textures.",
425 input.shadeInput.GetPrim().GetPath().GetString()
426 );
427 }
428}
429} // namespace Falcor

Callers 2

convertTextureMethod · 0.45
onFrameRenderMethod · 0.45

Calls 2

isTexturedMethod · 0.80
logWarningFunction · 0.50

Tested by

no test coverage detected