Skip to content
Snippets Groups Projects
Commit 62aec3d7 authored by Alexander Rose's avatar Alexander Rose
Browse files

fixed raycast maxSteps

parent 9a71654c
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ async function createBaseValues(ctx: RuntimeContext, directVolume: DirectVolumeB
const controlPoints = getControlPointsFromString(props.controlPoints)
const transferTex = createTransferFunctionTexture(controlPoints)
const maxSteps = Math.round(Vec3.magnitude(bboxSize.ref.value))
const maxSteps = Math.ceil(Vec3.magnitude(gridDimension.ref.value)) * 2
console.log('maxSteps', maxSteps)
return {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment