arnold-usd icon indicating copy to clipboard operation
arnold-usd copied to clipboard

Set output to half precision for RenderVars with half types

Open jhodgson opened this issue 3 years ago • 2 comments

If we create renderVars with half precision (we currently use the dataType and then override with the format) we need to add HALF at the end of the output string for that AOV in read_options.cpp.

The usual case is that the format is set to color3h for the RGB case, but there may be other scenarios such as as color4h (RGBA), half3 (RGB), half4 (RGBA), half2 (VECTOR2) and half (FLOAT) to support.

jhodgson avatar Jul 28 '22 10:07 jhodgson

Example file with half float AOVs

jhodgson avatar Jul 28 '22 12:07 jhodgson