Sign in to follow this  
ADT_Clone

Rendering cubes in a shader

Recommended Posts

ADT_Clone    100
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this