So I've managed to run your raytrace-cpp example and also tried using QMaterial::setAlbedoTexture/setRoughnessTexture/setMetalnessTexture(QAbstractTexture *texture) as follows:
However, I could not see them be reflected on the mesh.
Do you happen to have an example using those APIs?
By the way, I also printed out member values of imageData fetched in UploadTextureJob::run() and they are correct, which means the image has been loaded and ready to be uploaded to GPU.
Hi @Nadrin,
So I've managed to run your
raytrace-cpp
example and also tried usingQMaterial::setAlbedoTexture/setRoughnessTexture/setMetalnessTexture(QAbstractTexture *texture)
as follows:However, I could not see them be reflected on the mesh. Do you happen to have an example using those APIs?
By the way, I also printed out member values of
imageData
fetched inUploadTextureJob::run()
and they are correct, which means the image has been loaded and ready to be uploaded to GPU.Thank you.