| 407 | } |
| 408 | |
| 409 | void 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 |
no test coverage detected