Material QML Type

Lets you define material for the 3D item. More...

Import Statement: import QtQuick3D 1.14
Inherits:

Object3D

Inherited By:

CustomMaterial, DefaultMaterial, and PrincipledMaterial

Properties

Detailed Description

Property Documentation

cullingMode : enumeration

This property defines whether culling is enabled and which mode is actually enabled.

Frontface means polygons' winding is clockwise in window coordinates and Backface means otherwise.

Constant Description
Material.BackfaceCulling Default; Backface will not be rendered.
Material.FrontfaceCulling Frontface will not be rendered.
Material.FrontAndBackfaceCulling Both front and back faces will not be rendered.
Material.DisableCulling Both faces will be rendered.

displacementAmount : real

This property controls the offset amount for the Material::displacmentMap.

displacementMap : Texture

This property defines grayscale image used to offset the vertices of geometry across the surface of the material. Brighter pixels indicate raised regions.

Note: Displacement maps require vertices to offset. I.e. the result will be more accurate on a high poly model than on a low poly model.

Note: Displacement maps do not affect the normals of your geometry. To look correct with lighting or reflections you will likely want to also add a matching bump map or normal map to your material.

lightProbe : Texture

This property defines a Texture for overriding or setting an image based lighting Texture for use with this material.

See also SceneEnvironment::lightProbe.

lightmapIndirect : Texture

This property defines a baked lightmap Texture containing indirect lighting information for this material.

Note: This feature is still in development so there is currently no way to bake lights. The texture currently still uses the UV1 coordinates which is going to change later to UV2.

lightmapRadiosity : Texture

This property defines a baked lightmap Texture containing direct lighting information for this material.

Note: This feature is still in development so there is currently no way to bake lights. The texture currently still uses the UV1 coordinates which is going to change later to UV2.

lightmapShadow : Texture

This property defines a baked lightmap Texture containing shadowing information for this material.

Note: This feature is still in development so there is currently no way to bake lights. The texture currently still uses the UV1 coordinates which is going to change later to UV2.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.14/qml-qtquick3d-material.html