mirror of
https://github.com/lubosz/overte.git
synced 2025-04-10 04:28:59 +02:00
Fixed compilation errors
This commit is contained in:
parent
a45b91c4be
commit
89ca7ac415
4 changed files with 5 additions and 5 deletions
|
@ -2,6 +2,7 @@ set(TARGET_NAME image)
|
|||
setup_hifi_library()
|
||||
link_hifi_libraries(shared gpu)
|
||||
target_nvtt()
|
||||
target_tbb()
|
||||
target_etc2comp()
|
||||
target_openexr()
|
||||
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
#include "CubeMap.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <tbb/parallel_for.h>
|
||||
#include <tbb/blocked_range2d.h>
|
||||
#include <TBBHelpers.h>
|
||||
|
||||
#include "RandomAndNoise.h"
|
||||
#include "BRDF.h"
|
||||
|
@ -551,7 +550,7 @@ void CubeMap::generateGGXSamples(GGXSamples& data, float roughness, const int re
|
|||
float D = ggx::evaluate(NdotH, roughness);
|
||||
float pdf = (D * NdotH / (4.0f * HdotV)) + 0.0001f;
|
||||
float saSample = 1.0f / (float(sampleCount) * pdf + 0.0001f);
|
||||
float mipLevel = std::max(0.5f * log2(saSample / saTexel) + mipBias, 0.0f);
|
||||
float mipLevel = std::max(0.5f * std::log2(saSample / saTexel) + mipBias, 0.0f);
|
||||
|
||||
auto& sample = data.points[sampleIndex];
|
||||
sample.x = L.x;
|
||||
|
|
|
@ -14,8 +14,7 @@
|
|||
|
||||
#include "render-utils/ShaderConstants.h"
|
||||
|
||||
#include <tbb/parallel_for.h>
|
||||
#include <tbb/blocked_range2d.h>
|
||||
#include <TBBHelpers.h>
|
||||
|
||||
gpu::TexturePointer LightingModel::_ambientFresnelLUT;
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <tbb/concurrent_unordered_set.h>
|
||||
#include <tbb/concurrent_vector.h>
|
||||
#include <tbb/parallel_for.h>
|
||||
#include <tbb/blocked_range2d.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning( pop )
|
||||
|
|
Loading…
Reference in a new issue