CSEngine
Loading...
Searching...
No Matches
Settings.cpp
1//
2// Created by ounol on 2021-08-14.
3//
4
5#include "Settings.h"
6
7using namespace CSE;
8
9const char* Settings::m_deferredGeometryPassShaderID = "File:Shader/PBR/PBR-Geometry-Pass.shader";
10const char* Settings::m_defaultForwardMaterialID = "File:Material/DefaultPBR.mat";
11const char* Settings::m_defaultDeferredMaterialID = "File:Material/Default.mat";
12const char* Settings::m_defaultDeferredProxyMaterialID = "File:Material/DefaultPBR.mat";
13const char* Settings::m_defaultMainBufferShaderID = "File:Shader/Main-Buffer.shader";
14const char* Settings::m_defaultBlitBufferShaderID = "File:Shader/Blit-Buffer.shader";
15const int Settings::m_maxLights = 8;
16
17const bool Settings::m_assetsPacked = true;
18
19const int Settings::m_maxJoints = 60;
20
21Settings::Settings() = default;
22
23Settings::~Settings() = default;
24
25const char* Settings::GetDeferredGeometryPassShaderID() {
26 return m_deferredGeometryPassShaderID;
27}
28
29const char* Settings::GetDefaultForwardMaterialId() {
30 return m_defaultForwardMaterialID;
31}
32
33const char* Settings::GetDefaultDeferredMaterialId() {
34#if defined(__ANDROID__) || defined(__EMSCRIPTEN__)
35 return m_defaultDeferredProxyMaterialID;
36#else
37 return m_defaultDeferredMaterialID;
38#endif
39}
40
41const char* Settings::GetDefaultMainBufferShaderID() {
42 return m_defaultMainBufferShaderID;
43}
44
45const char* Settings::GetDefaultBlitBufferShaderID() {
46 return m_defaultBlitBufferShaderID;
47}
48
49int Settings::GetMaxLights() {
50 return m_maxLights;
51}
52
53int Settings::GetMaxJoints() {
54 return m_maxJoints;
55}