Closed ELSECorp closed 4 years ago
I think it could be done by just adding a "channel" parameter to the image node:
"roughness": { "constant": 0, "texture": { "factor": 1, "offset": 0, "image": { "dpi": 1000, "height": 11.1195, "path": "textures/Example_0.9_RSM.jpg", "channel": "R", "repeat": { "mode": "normal", "rotation": 0 }, "width": 12.1759 } } },
this way several maps could share the same image.
It would be good for renderers where texture sampling is expensive to be able to specify channels when assigning textures to shader parameters, meaning an RGB texture could contain (for example) Roughness in R, Specular in G, Metalness in B.