Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qssgrendereffect.cpp File Reference

(f9d7a3692bcbf1ce79755b212649dc6c432c88ec)

#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 55 of file qssgrendereffect.cpp.

Referenced by QSSGRenderEffect::finalizeShaders().

◆ 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 61 of file qssgrendereffect.cpp.

Referenced by QSSGRenderEffect::finalizeShaders().

◆ effect_vertex_main_position

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

Definition at line 49 of file qssgrendereffect.cpp.

Referenced by QSSGRenderEffect::finalizeShaders().

◆ effect_vertex_main_post

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

Definition at line 52 of file qssgrendereffect.cpp.

Referenced by QSSGRenderEffect::finalizeShaders().

◆ 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 36 of file qssgrendereffect.cpp.

Referenced by QSSGRenderEffect::finalizeShaders().