finished tutorial 7

This commit is contained in:
h4570
2022-08-23 22:31:07 +02:00
parent 9f831c7a6f
commit 989d2702e8
24 changed files with 439 additions and 25 deletions
+18
View File
@@ -23,7 +23,25 @@ class Tutorial07 : public Game {
void loop();
private:
void loadMeshWithLightmap();
void setDirectionalLightsOptions();
void setLightmap(MeshBuilderData* data);
void switchBetweenLightmapAndDirectional();
int counter, switcher;
Engine* engine;
Vec4 cameraPosition, cameraLookAt;
StaticPipeline stapip;
StaPipOptions renderOptions;
std::unique_ptr<StaticMesh> mesh;
PipelineLightingOptions renderLightingOptions;
Color directionalAmbientColor;
std::array<Color, 3> directionalColors;
std::array<Vec4, 3> directionalDirections;
};
} // namespace Tyra