Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

can the geometry shader have per-primitive attributes?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 mv348   Members   

263
Like
0Likes
Like

Posted 18 January 2013 - 01:03 PM

Lets say you had a list of triangles and you want to associate a particular attribute with each triangle. Is it possible to provide per-primitive attributes to the geometry shader, just as you can give per-vertex attributes to the vertex-shader?

 

Or, could you at least have access to all the attributes of the vertices that make up the primitive?


Edited by mv348, 18 January 2013 - 01:06 PM.


#2 mhagain   Members   

13152
Like
0Likes
Like

Posted 18 January 2013 - 06:08 PM

If you want per-primitive attributes use instancing; that's one of the things that instancing can give you.


It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.