Sign in to follow this  
slicer4ever

storing data per vertex in geometry shader.

Recommended Posts

slicer4ever    6760
hello everyone, i've been working on a shadow volume generator using edge counting in the geometry shader.

my problem is that i've managed to figure out how to transfer much of the data to represent edge's in a per-vertex fashion.

but, i have a problem, edge counting requires counting the edges connected to the faces that are facing the light(based on winding.), my problem falls into how do i carry a counter which is determined inside the geometry.

i was initially thinking of using a texture which is equal to the number of unique edges in the geometry, but after some research, i learned that i can't edit the texture in shader's.

so, my question, how do i store large amounts of data across geometry primitive's.

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