The first week we worked on setting up our foundation code as well as adding Bezier patches
- Setup base code
- Initial FFT code
- Updated Scene graph to include shaders
- Added Bezier Patches
The reason we wanted to add shaders to the scene graph so that we could have shaders associated with certain groups of objects and so that we could easily manage"multiple shaders" in one scene. In the current scene graph, the shaders are called "ShaderGroups" and can have any number of child nodes to which the shader is applied. If the ShaderGroup happens to have a ShaderGroup Node as a child, then the parent shader is unbound and then the child shader is turned on whenever the shader's draw method is called. Upon completion of the draw method, the child shader rebinds the parent shader.
Note in the following screen shot that we tested our shader scene graph by having multiple shaders in the scene (one for each color) to color the different objects.
All of the shapes are included in one scene graph. The bottom shape is a test for our Bezier Patches.
No comments:
Post a Comment