Sign in to follow this  
livengood

Lower level rendering details

Recommended Posts

Hello, I have been working on the rendering system in my engine and have some questions. I have my higher level representation mostly down (A scene graph for the world, creates a renderList(queue), sent to the renderer). Firstly, where do you handle data prep for the shader say.. I need the world inverse transpose. Inside of my render loop where I am rendering my RenderList I have the world matrix available, would you just inverse transpose it right there? Or should this somehow be done earlier? Maybe stored in the renderChunk? What about the world*view*proj? Again, Should it be done earlier? Or should it be done right there while the data is available? The question is slightly misguided but the main idea is I don't like having to do these calculation's in my otherwise neat and clean render cycle. It seems like this data should already be prepared and I can just drop it into the shader and move on. Also, What is a material as you think of it? Is it a place where you store the shader type, parameters, textures? or is it a place where light reflectance info is stored? or is it just anything that defines a surface? It has been confusing me for some time. Thanks in advance!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this