ParaToxic Posted November 2, 2012 Share Posted November 2, 2012 Hey I have a question. I would like to learn more about shaders and would like to write some surface shaders. Now I see the shader framework works with FragData[0,1,2] and not only with FragColor like in the Post processing part. But what is done with this FragData data ?? I see some stuff like the diffuse and normal data is stored in Fragdata[0] , specular and gloss in FragData[1] and I think this is something what is seperated for the lighting part of the framework. But what exactly is done with the FragData ??? Thanks Quote Link to comment Share on other sites More sharing options...
shadmar Posted November 3, 2012 Share Posted November 3, 2012 From what I understand they are used for diffuse, normal, specular, glow (0-3). Josh paper on LE renderer : http://www.leadwerks.com/files/Deferred_Rendering_in_Leadwerks_Engine.pdf Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
ParaToxic Posted November 4, 2012 Author Share Posted November 4, 2012 ahh okey thanks shadmar , your the expert here Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.