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
qssgrenderlight.cpp
Go to the documentation of this file.
1// Copyright (C) 2008-2012 NVIDIA Corporation.
2// Copyright (C) 2019 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
4
5#include <QtQuick3DRuntimeRender/private/qssgrenderlight_p.h>
6
8
11 , m_scope(nullptr)
12 , m_diffuseColor(1, 1, 1)
13 , m_specularColor(1, 1, 1)
14 , m_ambientColor(0, 0, 0)
15 , m_brightness(1)
16 , m_constantFade(1)
17 , m_linearFade(0)
18 , m_quadraticFade(1)
19 , m_coneAngle(40.0f)
20 , m_innerConeAngle(30.0f)
21 , m_castShadow(false)
22 , m_shadowBias(0.0f)
23 , m_shadowFactor(5.0f)
24 , m_shadowMapRes(512)
25 , m_shadowMapFar(5000.0f)
26 , m_shadowFilter(35.0f)
27{
30}
31
37
43
static constexpr bool isLight(Type type) noexcept
Combined button and popup list for selecting options.
GLenum type
#define Q_ASSERT(cond)
Definition qrandom.cpp:47
QObject::connect nullptr
QSSGRenderLight(Type type=Type::DirectionalLight)
void clearDirty(DirtyFlag dirtyFlag)
std::underlying_type_t< DirtyFlag > FlagT
void markDirty(DirtyFlag dirtyFlag)
void clearDirty(DirtyFlag dirtyFlag)
void markDirty(DirtyFlag dirtyFlag)