• Advertisement
Sign in to follow this  

Rendering cubes in a shader

This topic is 2484 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am currently having a go at volume rendering using cubes. I have been extensively looking through resources on how to do this, and reading explanations on how to do it, and I understand the gist of it.

You send a 3d texture to the shader. Each voxel in this texture contains some data about a "virtual cube"(Could be colour or texture coords in a texture atlas). The shader then renders the cubes.

I read that you render a cube of a specified dimension(8x8x8) for example in the engine, which then gets sent to the shader with a corresponding 3d texture describing the location of the cubes. This cube is then ray casted through each of its pixels in the shader, and cubes rendered in this way. This is what confuses me.

What does this mean? How is it possible to render faces using this method?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement