| 767 | } |
| 768 | |
| 769 | extern "C" OPENPGL_DLLEXPORT pgl_vec3f pglVolumeSamplingDistributionFluence(PGLVolumeSamplingDistribution volumeSamplingDistribution, const bool directLightMIS) |
| 770 | { |
| 771 | IVolumeSamplingDistribution *gVolumeSamplingDistribution = (IVolumeSamplingDistribution *)volumeSamplingDistribution; |
| 772 | openpgl::Vector3 fluence = gVolumeSamplingDistribution->fluence(directLightMIS); |
| 773 | |
| 774 | pgl_vec3f pglFluence; |
| 775 | pglVec3f(pglFluence, fluence.x, fluence.y, fluence.z); |
| 776 | return pglFluence; |
| 777 | } |
| 778 | |
| 779 | #endif |
| 780 | |