DepthRange QML Type
Consente di rimappare i valori di profondità scritti nel buffer di profondità. Altro...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QDepthRange |
| Inherits: | |
| Status: | Deprecated |
Questo tipo è deprecato. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.
Descrizione dettagliata
Per impostazione predefinita, OpenGL scrive le informazioni di profondità della scena nel buffer di profondità nell'intervallo [0,0; 1,0] corrispondente ai piani di clip vicino e lontano. QDepthRange consente di mappare questi valori in un intervallo diverso. Ad esempio, impostando l'intervallo [0,0; 0,5] si mapperà la scena renderizzata nel buffer di profondità in modo tale che gli oggetti sul piano di ritaglio vicino abbiano un valore di profondità pari a 0,0 e quelli sul piano di ritaglio lontano abbiano un valore di profondità pari a 0,5. Ciò consente di renderizzare parti della scena sempre davanti o dietro ad altre parti.
© 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.