When I read documents about deferred shading, it is said that we need to store in the g-buffer, the following data:
- 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]