mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
Re-implemented vec3 initializations based on new definition
This commit is contained in:
@@ -20,5 +20,5 @@ __device__ Vec3 computeGradient(float* volumeData, const int volW, const int vol
|
||||
float gz = volumeData[zp * volW * volH + y * volW + x ]
|
||||
- volumeData[zm * volW * volH + y * volW + x ];
|
||||
|
||||
return Vec3(gx, gy, gz);
|
||||
return Vec3::init(gx, gy, gz);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user