Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qssgrendereffect.cpp File Reference

(4de69429c9d01e5a826ba1c4d2e6e0778847a68e)

#include <QtQuick3DRuntimeRender/private/qssgrenderer_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrendereffect_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrenderlayer_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrendercommands_p.h>
#include "../qssgrendercontextcore.h"
#include "../rendererimpl/qssglayerrenderdata_p.h"
#include <QtGui/QVector2D>
#include <QtGui/QVector3D>
Include dependency graph for qssgrendereffect.cpp:

Go to the source code of this file.

Variables

static const char * effect_vertex_main_pre
static const char * effect_vertex_main_position
static const char * effect_vertex_main_post
static const char * effect_fragment_main
static const char * effect_fragment_main_with_tonemapping

Variable Documentation

◆ effect_fragment_main

const char * effect_fragment_main
static
Initial value:
=
"void main()\n"
"{\n"
" qt_customMain();\n"
"}\n"

Definition at line 53 of file qssgrendereffect.cpp.

◆ effect_fragment_main_with_tonemapping

const char * effect_fragment_main_with_tonemapping
static
Initial value:
=
"#include \"tonemapping.glsllib\"\n"
"void main()\n"
"{\n"
" qt_customMain();\n"
" fragOutput = qt_tonemap(fragOutput);\n"
"}\n"

Definition at line 59 of file qssgrendereffect.cpp.

◆ effect_vertex_main_position

const char * effect_vertex_main_position
static
Initial value:
=
" gl_Position = qt_modelViewProjection * qt_vertPosition;\n"

Definition at line 47 of file qssgrendereffect.cpp.

◆ effect_vertex_main_post

const char * effect_vertex_main_post
static
Initial value:
=
"}\n"

Definition at line 50 of file qssgrendereffect.cpp.

◆ effect_vertex_main_pre

const char * effect_vertex_main_pre
static
Initial value:
=
"void main()\n"
"{\n"
" qt_inputUV = attr_uv;\n"
" qt_textureUV = qt_effectTextureMapUV(attr_uv);\n"
" vec4 qt_vertPosition = vec4(attr_pos, 1.0);\n"
"#if QSHADER_VIEW_COUNT >= 2\n"
" qt_viewIndex = gl_ViewIndex;\n"
"#else\n"
" qt_viewIndex = 0;\n"
"#endif\n"
" qt_customMain(qt_vertPosition.xyz);\n"

Definition at line 34 of file qssgrendereffect.cpp.