Qt Quick 3D - Exemplo simples de neblina

Demonstra como ativar a névoa na cena 3D.

Cena 3D com esferas coloridas e controles de neblina

Este exemplo demonstra o uso da propriedade ` fog ` do objeto ` SceneEnvironment`. A cena contém várias esferas instanciadas, com controles que podem ser usados para ajustar as diversas propriedades do objeto `Fog`.

Fog {
    id: theFog

    enabled: cbFogEnabled.checked
    depthEnabled: cbDepthEnabled.checked
    heightEnabled: cbHeightEnabled.checked
    transmitEnabled: cbTransmitEnabled.checked

    density: valDensity.value
    depthNear: valDepth.first.value
    depthFar: valDepth.second.value
    depthCurve: valDepthCurve.value
    leastIntenseY: valHeightMin.value
    mostIntenseY: valHeightMax.value
    heightCurve: valHeightCurve.value
    transmitCurve: valTransmitCurve.value
}

Projeto de exemplo em code.qt.io

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.