htl22-3ahif / fun

2 stars 1 forks source link

Restructuring the client #22

Open UgiNyaa opened 8 years ago

UgiNyaa commented 8 years ago

This is going to be a big topic. I went though the code of our fun.Client, and there is much potential of improvement. I would like to discuss them face to face and after it, I will post the results here.

Here some improvements I planed:

ghost commented 8 years ago

Oh god we're 70 commits in and there's already a post titled "restructuring the client"

UgiNyaa commented 8 years ago

New client structure:

There will be a class, which contains the whole model informations (mesh and material). It will look like that:

Model

There will be 3 shaders:

  1. ProgramShader: Is for the 3-D scene
    1. vertex.glsl: modifies the verticies of all models
    2. model.glsl: fragmentshader, who will get through all models and set the image out of it
  2. ProgramShader: Is for t he 2-D scene
    1. ui.glsl: fragmentshader, who will draw the ui