Skip to content

Commit

Permalink
Merge branch 'pointlights' of github.com:vlj/warzone2100 into pointli…
Browse files Browse the repository at this point in the history
…ghts
  • Loading branch information
vlj committed Jan 13, 2024
2 parents 8cd2d90 + 4734cd4 commit a72a019
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 a72a019

Please sign in to comment.