From 3dfc01de32ddea6c3716fd40b832b002cb82f00c Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 9 Nov 2026 14:17:38 +0100 Subject: [PATCH] [clang-format] Running clang-format --- openpgl/data/PathSegmentDataStorage.h | 4 ++-- openpgl/data/SampleData.h | 3 +-- openpgl/directional/vmm/ParallaxAwareVonMisesFisherMixture.h | 2 +- .../vmm/ParallaxAwareVonMisesFisherWeightedEMFactory.h | 3 ++- openpgl/imagespace/ImageSpaceGuidingBuffer.h | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/openpgl/data/PathSegmentDataStorage.h b/openpgl/data/PathSegmentDataStorage.h index 6c15c7a..ad67f88 100644 --- a/openpgl/data/PathSegmentDataStorage.h +++ b/openpgl/data/PathSegmentDataStorage.h @@ -248,8 +248,8 @@ struct PathSegmentDataStorage openpgl::Vector3(currentPathSegment.scatteringWeight.x, currentPathSegment.scatteringWeight.y, currentPathSegment.scatteringWeight.z); openpgl::Vector3 scatteredContribution = openpgl::Vector3(currentPathSegment.scatteredContribution.x, currentPathSegment.scatteredContribution.y, currentPathSegment.scatteredContribution.z); - //openpgl::Vector3 directContribution = - // openpgl::Vector3(currentPathSegment.directContribution.x, currentPathSegment.directContribution.y, currentPathSegment.directContribution.z); + // openpgl::Vector3 directContribution = + // openpgl::Vector3(currentPathSegment.directContribution.x, currentPathSegment.directContribution.y, currentPathSegment.directContribution.z); #endif float pdf = std::max(minPDF, currentPathSegment.pdfDirectionIn); uint32_t flags{0}; diff --git a/openpgl/data/SampleData.h b/openpgl/data/SampleData.h index 437c59b..8b12d73 100644 --- a/openpgl/data/SampleData.h +++ b/openpgl/data/SampleData.h @@ -184,8 +184,7 @@ inline bool ZeroValueSampleDataLess(const PGLZeroValueSampleData &compA, const P #ifndef PGL_USE_DIRECTION_COMPRESSION && (compA.direction.x < compB.direction.x || (compA.direction.x == compB.direction.x && - (compA.direction.y < compB.direction.y || - (compA.direction.y == compB.direction.y && (compA.direction.z < compB.direction.z))))) + (compA.direction.y < compB.direction.y || (compA.direction.y == compB.direction.y && (compA.direction.z < compB.direction.z))))) #else && compA.direction.compressed_direction < compB.direction.compressed_direction #endif diff --git a/openpgl/directional/vmm/ParallaxAwareVonMisesFisherMixture.h b/openpgl/directional/vmm/ParallaxAwareVonMisesFisherMixture.h index 3d8e289..efe2b98 100644 --- a/openpgl/directional/vmm/ParallaxAwareVonMisesFisherMixture.h +++ b/openpgl/directional/vmm/ParallaxAwareVonMisesFisherMixture.h @@ -980,7 +980,7 @@ inline void ParallaxAwareVonMisesFisherMixture::updateCompo #ifdef OPENPGL_RADIANCE_CACHES template void ParallaxAwareVonMisesFisherWeightedEMFactory::updateFluenceEstimate(VMM &vmm, const SampleData *samples, const size_t numSamples, - const size_t numZeroValueSamples, [[maybe_unused]]const SampleStatistics &sampleStatistics) const + const size_t numZeroValueSamples, + [[maybe_unused]] const SampleStatistics &sampleStatistics) const { #ifdef MC_ESTIMATE_INCOMING_RADIANCE // calcualting fluence and the RGB per lob estiamtions using the MC samples if (numSamples == 0) diff --git a/openpgl/imagespace/ImageSpaceGuidingBuffer.h b/openpgl/imagespace/ImageSpaceGuidingBuffer.h index d740273..6f98577 100644 --- a/openpgl/imagespace/ImageSpaceGuidingBuffer.h +++ b/openpgl/imagespace/ImageSpaceGuidingBuffer.h @@ -759,7 +759,7 @@ struct ImageSpaceGuidingBuffer m_contributionEstimateBuffers->spp[pixelIdx] += 1; float alpha = 1.f / m_contributionEstimateBuffers->spp[pixelIdx]; - //const pgl_vec3f quantity = m_cfg.contributionType == PGLContributionTypes::EContribContribution ? sample.contribution : sample.contribution * sample.contribution; + // const pgl_vec3f quantity = m_cfg.contributionType == PGLContributionTypes::EContribContribution ? sample.contribution : sample.contribution * sample.contribution; m_contributionEstimateBuffers->contribution[pixelIdx] = (1.f - alpha) * m_contributionEstimateBuffers->contribution[pixelIdx] + alpha * sample.contribution; m_contributionEstimateBuffers->albedo[pixelIdx] = (1.f - alpha) * m_contributionEstimateBuffers->albedo[pixelIdx] + alpha * sample.albedo; m_contributionEstimateBuffers->normal[pixelIdx] = (1.f - alpha) * m_contributionEstimateBuffers->normal[pixelIdx] + alpha * sample.normal;