Closed leoscholl closed 3 years ago
The 3D renderer can be used to do 2D experiments, just use the base Renderer class; however there is harsh lighting. Maybe we can modify the lighting to be more flat so the spheres look more circular?
opengl shaders contron the lighting. bmi3d implements "phong reflection" in phong.f.glsl
, an opengl fragment shader. i wrote a new fragment shader that just spits out the base color without doing any lighting effects in none.f.glsl
. problem solved
Using the 2D window class the maximum framerate appears to be around 40 fps.
With the 3D renderer I’ve measured up to 120 fps.