mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
Added alpha accum gui param
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user