2c639aea76
Interesting on its own just because it exercises stencil testing, unlike any of the other existing manual tests. In addition it serves as a base example for how outlines could be done, it is one possible approach at least. (render with stencil write, then render again slightly scaled up with a solid color with testing against the stencil buffer content) Change-Id: I0c845a9004136f229cab037f6f0aab2f772bdd76 Reviewed-by: Christian Strømme <christian.stromme@qt.io>
20 lines
376 B
CMake
20 lines
376 B
CMake
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
qt_internal_add_manual_test(stenciloutline
|
|
GUI
|
|
SOURCES
|
|
stenciloutline.cpp
|
|
LIBRARIES
|
|
Qt::Gui
|
|
Qt::GuiPrivate
|
|
)
|
|
|
|
qt_internal_add_resource(stenciloutline "stenciloutline"
|
|
PREFIX
|
|
"/"
|
|
FILES
|
|
"material.frag.qsb"
|
|
"material.vert.qsb"
|
|
)
|