I’m trying to offset the UVs of a normal map in the Viewer API using setUVOffset() but it appears to just remove the normal map immediately when called. It works fine when set to the AlbedoPBR channel.
I’ve forked the UV Transforms example provided by Sketchfab and all I’ve changed is the model ID to a simple cube I’ve uploaded and in the updateOffset() function I’ve changed the channel from ‘AlbedoPBR’ to ‘NormalMap’.
You can view the JSFiddle here, notice how the normal map disappears as soon as you use the OffsetX or OffsetY sliders - https://jsfiddle.net/17vsg5az/2/
Am I using this function incorrectly?