Jump to content
  • Advertisement
Sign in to follow this  

storing data per vertex in geometry shader.

This topic is 2442 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

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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!