Demonstrates how to enable fog in the 3D scene.
此範例演示用法對於 SceneEnvironment 's fog property. The scene contains a number of instanced spheres, with controls that can be used to tune the various properties of the Fog object .
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 }