mzedd / demotool

GNU General Public License v3.0
1 stars 1 forks source link

Generalize scene class #25

Open mzedd opened 4 years ago

mzedd commented 4 years ago

Generalize scene class as an abstract class and create to realizations: RayScene and RasterScene.

Scenes

RayScene: A ray scene is shader based only and uses a fragment shader with raytracing/raymarching to compute an image. RasterScene: A RasterScenen uses the common opengl way to generate pictures made out of triangles and basic lightingshaders.

Each scene types gets its own editor (see #6 for the rayScene).

mzedd commented 3 years ago

The RayScene is now called ShaderOnlyScene. The name Rayscene implies that only 3D Scenes with raytracing or raymarching are managed by this class, but we also want 2D Scenes in there.