![]() ![]() Generates the leaf geometry (aka the instanced triangle grid), and manages the buffers and vertex arrays storing them.Manages the 3 buffers containing the nodes of the bintrees:.render_program_: implemented in bintree_render_*.glsl.copy_program_: implemented in bintree_copy.glsl.compute_program_: implemented in bintree_compute.glsl.Manages the 3 OpenGL programs corresponding to the 3 Passes to render one frame:.Defines the Settings struct, containing all the parfameters of the bintrees, accessed by the GUI.Interpolation type: Switch between linear, PN and Phong interpolation (MESH mode only)Ĭlass containing the CPU side of the main work of this project: the bintree algorithm.CPU LoD: Level of subdivision of the instanced triangle grid.Polygon Type: Switch between Triangles and Quads (TERRAIN mode only, auto defined for mesh).Readback Node Count: Readbacks the number of nodes in the bintree, and the total number of rendered triangles (after culling).Edge Length: slider for the target edge length, in px, as power of two (4 on the slider = 2^4 = 8px).Uniform: toggle uniform subdivision (with slider for level).Rotate Mesh: rotates the mesh around the z axis. ![]()
0 Comments
Leave a Reply. |