finished tutorial 7

This commit is contained in:
h4570 committed 2022-08-23 22:31:07 +02:00
1 parent 9f831c7a6f
commit 989d2702e8
24 files changed
+439 -25

No files matched your search

+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