From fc049fcbc210b1aa7a59cf8c02247adfa35e5355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Thu, 9 Oct 2014 12:28:57 +0300 Subject: [PATCH] Added doc about reflections and stencil buffer Change-Id: I939d02433291b00a529598718b6390d7246f89f9 Change-Id: I939d02433291b00a529598718b6390d7246f89f9 Reviewed-by: Miikka Heikkinen --- src/datavisualization/engine/qabstract3dgraph.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/datavisualization/engine/qabstract3dgraph.cpp b/src/datavisualization/engine/qabstract3dgraph.cpp index 9fb71d59..df6ed597 100644 --- a/src/datavisualization/engine/qabstract3dgraph.cpp +++ b/src/datavisualization/engine/qabstract3dgraph.cpp @@ -743,6 +743,9 @@ qreal QAbstract3DGraph::horizontalAspectRatio() const * for custom items that intersect the floor plane. In that case, reflections should be turned off * to avoid incorrect rendering. * + * \note If using custom surface format, stencil buffer needs to be defined + * (QSurfaceFormat::setStencilBufferSize()) for reflections to work. + * * \sa reflectivity */ void QAbstract3DGraph::setReflection(bool enable)