Skip to content

Commit

Permalink
Implement review suggestions
Browse files Browse the repository at this point in the history
Co-Authored-By: Pavel Solodovnikov <[email protected]>
  • Loading branch information
past-due and ManManson committed Jan 14, 2024
1 parent 26a5159 commit 2cb117d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ivis_opengl/pielighting.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct ILightingManager

virtual void ComputeFrameData(const LightingData& data, LightMap& lightmap, const glm::mat4& worldViewProjectionMatrix) = 0;

PointLightBuckets getPointLightBuckets() const
const PointLightBuckets& getPointLightBuckets() const
{
return currentPointLightBuckets;
}
Expand Down
3 changes: 2 additions & 1 deletion src/terrain.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@
#include "terrain_defs.h"

struct ShadowCascadesInfo;
struct LightMap;

void loadTerrainTextures(MAP_TILESET mapTileset);

bool initTerrain();
void shutdownTerrain();

void perFrameTerrainUpdates(const struct LightMap& lightData);
void perFrameTerrainUpdates(const LightMap& lightData);
void drawTerrainDepthOnly(const glm::mat4 &mvp);
void drawTerrain(const glm::mat4 &mvp, const glm::mat4& viewMatrix, const Vector3f &cameraPos, const Vector3f &sunPos, const ShadowCascadesInfo& shadowMVPMatrix);
void drawWater(const glm::mat4 &ModelViewProjection, const Vector3f &cameraPos, const Vector3f &sunPos);
Expand Down

0 comments on commit 2cb117d

Please sign in to comment.