-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
In test_assets\TextureTransformTest
inputs:in.connect uses token type,
| token inputs:in.connect = </TextureTransformTest/Materials/Offset_U_53148/uvReader.outputs:result> |
where float2 is expected according to the spec
https://openusd.org/release/spec_usdpreviewsurface.html#transform2d
def Shader "usdTransform"
{
uniform token info:id = "UsdTransform2d"
token inputs:in.connect = </TextureTransformTest/Materials/Offset_V_53152/uvReader.outputs:result>
^^^^^^^^^^^^^^^^^^^^^^^
float inputs:rotation = 0
float2 inputs:scale = (1, 1)
float2 inputs:translation = (0, -0.5)
float2 outputs:result
}
Surprisingly, OpenUSD does not check the type of Attribute when it is a Attribute Connection, so tools using OpenUSD can open it without errors(e.g. Blender 4.1)
Anyway, using float2 inputs:in.connect would be better to make this USD test scene conformant to UsdPreviewSurface Spec.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
