powerup project : support of Qt 5.10
I am trying to adapt the powerup project in C++ instead of QML, which works fine in Qt 5.9 but not in 5.10.
Apparently there's no more QTexturedMetalRoughMaterial in Qt3DExtras module, instead we should use QMetalRoughMaterial. The issue is to set textures, this new class asks for QVariant values as arguments, instead of Qt3DRender::QAbstractTexture, and i didn't find a way to get this QVariant, neither any documentation on the subject.
Maybe because this class doesn't use textures but colors, but which class we need to use then ?
Thanks for your help.
@seanharmer Ideas?
I think setting the texture with QVariant::fromValue(QAbstractTexture) should work. The new material will adapt the internal shader code based on the type being provided