diharaw / volumetric-clouds

MIT License
127 stars 9 forks source link

Set layered to TRUE on Texture3D. #4

Closed bostelk closed 1 year ago

bostelk commented 1 year ago

There must be a device/driver (Radeon RX 570) inconsistency because the clouds were not visible. I took a peek in RenderDoc and the noise textures were incomplete; only the first slice (0) was rendered to.

Reading the OpenGL documentation (glBindImageTexture) I see that you have to set layered to GL_TRUE to attach all elements/slices to the image. This fixed the issue and the demo is as expected. Nice work!

diharaw commented 1 year ago

Thank you so much for fixing this! But I think ideally this fix should go directly into the dwSampleFramework. I've already made the change in this commit.