zenux
07-02-2010, 10:22 AM
Hi all,
When I read documents about deferred shading, it is said that we need to store in the g-buffer, the following data:
- normal
- position
- color
- material ID
What is it the material ID? A pointer to a material, I guess! How get a material ID? How get data of the material in a fragment shader from a material ID?
Thank you in advance.
Sorry for my english: it isn't my mothertongue :p[/B]
When I read documents about deferred shading, it is said that we need to store in the g-buffer, the following data:
- normal
- position
- color
- material ID
What is it the material ID? A pointer to a material, I guess! How get a material ID? How get data of the material in a fragment shader from a material ID?
Thank you in advance.
Sorry for my english: it isn't my mothertongue :p[/B]