Added alpha accum gui param

This commit is contained in:
2025-01-15 19:53:50 +01:00
parent fca8ea3e84
commit f11eff0e96
5 changed files with 9 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ __global__ void raycastKernel(float* volumeData, FrameBuffer framebuffer, const
float alphaAccum = 0.0f;
float t = tNear; // Front to back
while (t < tFar && alphaAccum < alphaAcumLimit) {
while (t < tFar && alphaAccum < d_alphaAcumLimit) {
Point3 pos = d_cameraPos + rayDir * t;
// Convert to volume indices