Twinklebear / webgl-volume-raycaster

A WebGL Volume Raycaster
MIT License
252 stars 30 forks source link

Why is the direction reversed? #5

Closed kt7456 closed 2 years ago

kt7456 commented 2 years ago
1662432797606 1662432991117

Why is the direction reversed, I am using mapboxgl,Guess what causes this? thanks! this is demo address

Twinklebear commented 2 years ago

My guess is that mapboxgl is applying some y-flip the image, which you need to apply to the volume as well either when you render it or when you display the volume rendering above the map (if you're rendering to a texture and compositing that on top of the map)

kt7456 commented 2 years ago

My guess is that mapboxgl is applying some y-flip the image, which you need to apply to the volume as well either when you render it or when you display the volume rendering above the map (if you're rendering to a texture and compositing that on top of the map)

i dont know how to do ,please help me