On import, roughness is hard coded to read from the R texture channel (USDU-223)
jcowles opened this issue · 2 comments
jcowles commented
The roughness value in a texture can be declared in USD to come from any channel, for example, in this asset it comes from the alpha channel:
However, the roughness combiner shader is hard coded to only read from the R channel:
The issue is in CombineAndConverRoughness.shader
and the CombineRoughness
C# function.
jcowles commented
Repro case (rename to .usdz):
test-roughness.usdz.zip
This is the expected output - the top text should have roughness 0.0, next 0.3, next 0.6. The bottom three text lines have the same roughness, but set as constants.
Note that the .tga is sRGB gamma encoded to 2.2, so when decoded to linear space, the values should be 0.0, 0.3 and 0.6.
jcowles commented