In questa pagina

PolygonOffset QML Type

Il tipo PolygonOffset imposta la scala e gli incrementi per il calcolo dei valori di profondità relativi agli offset dei poligoni. Maggiori informazioni...

Import Statement: import Qt3D.Render 2.12
In C++: QPolygonOffset
Inherits:

RenderState

Status: Deprecated

Questo tipo è deprecato. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.

Proprietà

Descrizione dettagliata

Un tipo PolygonOffset aggiunge un offset al valore di profondità del frammento prima del test di profondità e della scrittura della profondità. L'offset può essere utilizzato per evitare il fenomeno dello z-fighting durante il rendering di poligoni con valori di profondità molto vicini, come ad esempio le decalcomanie.

Documentazione delle proprietà

depthSteps : real

Contiene le unità che generano offset di profondità costanti. Il valore predefinito è 0.

scaleFactor : real

Contiene il fattore di scala utilizzato per creare un offset di profondità variabile per ciascun poligono. Il valore predefinito è 0.

© 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.