![]() |
Qt 6.x
The Qt SDK
|
#include "qquick3dprincipledmaterial_p.h"
#include "qquick3dobject_p.h"
#include <QtQuick3DRuntimeRender/private/qssgrenderdefaultmaterial_p.h>
#include <QtQuick3DUtils/private/qssgutils_p.h>
Go to the source code of this file.
Functions | |
static QT_BEGIN_NAMESPACE float | ensureNormalized (float val) |
\qmltype PrincipledMaterial \inherits Material \inqmlmodule QtQuick3D | |
|
inlinestatic |
\qmltype PrincipledMaterial \inherits Material \inqmlmodule QtQuick3D
Lets you define a material for 3D items using the metal/roughness workflow.
Before a Model can be rendered in a scene, it must have at least one material attached to it that describes how the mesh should be shaded. The PrincipledMaterial is a PBR metal/roughness material that aims at being an easy to use material with a minimal set of parameters. In addition to having few parameters, all input values are strictly normalized between 0 and 1 and have sensible defaults, meaning even without changing any values, the material can be used to shader a model. For an introduction on how the different properties of the principled material affects how a model is shaded, see the \l{Qt Quick 3D - Principled Material Example}{Principled Material example}.
Definition at line 715 of file qquick3dprincipledmaterial.cpp.
References qBound().
Referenced by QQuick3DSpecularGlossyMaterial::setGlossiness(), QQuick3DPrincipledMaterial::setMetalness(), QQuick3DPrincipledMaterial::setNormalStrength(), QQuick3DSpecularGlossyMaterial::setNormalStrength(), QQuick3DPrincipledMaterial::setOpacity(), QQuick3DSpecularGlossyMaterial::setOpacity(), QQuick3DPrincipledMaterial::setRoughness(), QQuick3DPrincipledMaterial::setSpecularAmount(), and QQuick3DPrincipledMaterial::setSpecularTint().