@@ -883,9 +883,9 @@ extern "C" OPENPGL_DLLEXPORT void pglReleaseString(PGLString str)
883
883
// ImageSpaceGuidingBuffer ///////////////////////////////////////////////////
884
884
// /////////////////////////////////////////////////////////////////////////////
885
885
886
- extern " C" OPENPGL_DLLEXPORT PGLImageSpaceGuidingBuffer pglFieldNewImageSpaceGuidingBuffer (const pgl_point2i resolution )
886
+ extern " C" OPENPGL_DLLEXPORT PGLImageSpaceGuidingBuffer pglFieldNewImageSpaceGuidingBuffer (const PGLImageSpaceGuidingBufferConfig cfg )
887
887
{
888
- return (PGLImageSpaceGuidingBuffer) new openpgl::ImageSpaceGuidingBuffer (resolution, false );
888
+ return (PGLImageSpaceGuidingBuffer) new openpgl::ImageSpaceGuidingBuffer (cfg );
889
889
}
890
890
891
891
extern " C" OPENPGL_DLLEXPORT PGLImageSpaceGuidingBuffer pglFieldNewImageSpaceGuidingBufferFromFile (const char *fileName)
@@ -917,12 +917,20 @@ extern "C" OPENPGL_DLLEXPORT void pglImageSpaceGuidingBufferStore(PGLImageSpaceG
917
917
gImageSpaceGuidingBuffer ->store (fileName);
918
918
}
919
919
920
- extern " C" OPENPGL_DLLEXPORT pgl_vec3f pglImageSpaceGuidingBufferGetPixelContributionEstimate (PGLImageSpaceGuidingBuffer imageSpaceGuidingBuffer, const pgl_point2i pixel)
920
+ extern " C" OPENPGL_DLLEXPORT pgl_vec3f pglImageSpaceGuidingBufferGetContributionEstimate (PGLImageSpaceGuidingBuffer imageSpaceGuidingBuffer, const pgl_point2i pixel)
921
921
{
922
922
auto *gImageSpaceGuidingBuffer = (openpgl::ImageSpaceGuidingBuffer *)imageSpaceGuidingBuffer;
923
923
return gImageSpaceGuidingBuffer ->getContributionEstimate (pixel);
924
924
}
925
925
926
+ #if defined(OPENPGL_VSP_GUIDING)
927
+ extern " C" OPENPGL_DLLEXPORT float pglImageSpaceGuidingBufferGetVolumeScatterProbabilityEstimate (PGLImageSpaceGuidingBuffer imageSpaceGuidingBuffer, const pgl_point2i pixel)
928
+ {
929
+ auto *gImageSpaceGuidingBuffer = (openpgl::ImageSpaceGuidingBuffer *)imageSpaceGuidingBuffer;
930
+ return gImageSpaceGuidingBuffer ->getVolumeScatterProbabilityEstimate (pixel);
931
+ }
932
+ #endif
933
+
926
934
extern " C" OPENPGL_DLLEXPORT bool pglImageSpaceGuidingBufferIsReady (PGLImageSpaceGuidingBuffer imageSpaceGuidingBuffer)
927
935
{
928
936
auto *gImageSpaceGuidingBuffer = (openpgl::ImageSpaceGuidingBuffer *)imageSpaceGuidingBuffer;
0 commit comments