mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 15:54:32 +02:00
fix build error, add environment variable
This commit is contained in:
parent
deb5aacfad
commit
6e5217b80d
2 changed files with 8 additions and 1 deletions
|
@ -11,6 +11,8 @@
|
|||
|
||||
#include "MeshPartPayload.h"
|
||||
|
||||
#include <QProcess>
|
||||
|
||||
#include <PerfStat.h>
|
||||
#include <DualQuaternion.h>
|
||||
#include <graphics/ShaderConstants.h>
|
||||
|
@ -21,6 +23,9 @@
|
|||
|
||||
#include "RenderPipelines.h"
|
||||
|
||||
static const QString ENABLE_MESH_SHADERS_STRING { "HIFI_ENABLE_MESH_SHADERS" };
|
||||
static bool ENABLE_MESH_SHADERS = QProcessEnvironment::systemEnvironment().contains(ENABLE_MESH_SHADERS_STRING);
|
||||
|
||||
bool MeshPartPayload::enableMeshShaders = false;
|
||||
|
||||
using namespace render;
|
||||
|
@ -466,7 +471,7 @@ void ModelMeshPartPayload::render(RenderArgs* args) {
|
|||
|
||||
if (!_drawMaterials.empty() && _drawMaterials.top().material && _drawMaterials.top().material->isProcedural() &&
|
||||
_drawMaterials.top().material->isReady()) {
|
||||
if (!enableMeshShaders) {
|
||||
if (!(enableMeshShaders && ENABLE_MESH_SHADERS)) {
|
||||
return;
|
||||
}
|
||||
auto procedural = std::static_pointer_cast<graphics::ProceduralMaterial>(_drawMaterials.top().material);
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
#include <QtCore/QCommandLineParser>
|
||||
#include <QtCore/QUrl>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <image/TextureProcessing.h>
|
||||
#include <TextureBaker.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue