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
qssgrenderuserpass.cpp File Reference

(b027d2e8e3e8c21121d731c69ee6f399405cb0b6)

#include "qssgrenderuserpass_p.h"
#include <QtQuick3DRuntimeRender/private/qssgrendercommands_p.h>
#include <QtCore/qregularexpression.h>
#include <ssg/qssgrendercontextcore.h>
Include dependency graph for qssgrenderuserpass.cpp:

Go to the source code of this file.

Functions

QByteArray replaceAugmentMacros (const QByteArray &shaderCode)

Variables

static QT_BEGIN_NAMESPACE const QHash< const char *, const char * > AugmentMacros

Function Documentation

◆ replaceAugmentMacros()

QByteArray replaceAugmentMacros ( const QByteArray & shaderCode)

Definition at line 58 of file qssgrenderuserpass.cpp.

Variable Documentation

◆ AugmentMacros

QT_BEGIN_NAMESPACE const QHash< const char *, const char * > AugmentMacros
static
Initial value:
= {
{ "BASE_COLOR", "qt_diffuseColor" },
{ "ROUGHNESS", "qt_roughnessAmount" },
{ "METALNESS", "qt_metalnessAmount" },
{ "DIFFUSE_LIGHT", "global_diffuse_light.rgb" },
{ "SPECULAR_LIGHT", "global_specular_light" },
{ "EMISSIVE_LIGHT", "global_emission" },
{ "WORLD_NORMAL", "qt_world_normal" },
{ "WORLD_TANGENT", "qt_world_tangent" },
{ "WORLD_BINORMAL", "qt_world_binormal" },
{ "F0", "qt_f0" },
{ "F90", "qt_f90" }
}

Definition at line 17 of file qssgrenderuserpass.cpp.