Skip to content

Commit

Permalink
chore: refactor graphics server
Browse files Browse the repository at this point in the history
  • Loading branch information
painfulexistence committed Dec 7, 2024
1 parent 2b983be commit 9835f30
Show file tree
Hide file tree
Showing 6 changed files with 182 additions and 200 deletions.
39 changes: 0 additions & 39 deletions AtmosphericEngine/component_factory.cpp

This file was deleted.

24 changes: 0 additions & 24 deletions AtmosphericEngine/component_factory.hpp

This file was deleted.

11 changes: 8 additions & 3 deletions AtmosphericEngine/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@
#define SHOW_VSYNC_COST 0

// Graphics
#define MAX_UNI_LIGHTS 1
#define MAX_OMNI_LIGHTS 0
#define SHADOW_W 1024
#define SHADOW_H 1024
#define SHADOW_CASCADES 3
#define NUM_MAP_UNITS 6
#define MAX_UNI_LIGHTS 1
#define MAX_OMNI_LIGHTS 1 // NOTE: Currently, at least one omni shadow map is necessary, as there is no way to disable shadows for now
#define UNI_SHADOW_MAP_COUNT MAX_UNI_LIGHTS
#define OMNI_SHADOW_MAP_COUNT MAX_OMNI_LIGHTS
#define SHADOW_MAP_COUNT UNI_SHADOW_MAP_COUNT + OMNI_SHADOW_MAP_COUNT
#define DEFAULT_TEXTURE_BASE_INDEX SHADOW_MAP_COUNT
#define DEFAULT_TEXTURE_COUNT 0
#define SCENE_TEXTURE_BASE_INDEX SHADOW_MAP_COUNT + DEFAULT_TEXTURE_COUNT
#define VSYNC_ON 1
#define FRUSTUM_CULLING_ON 0
#define MSAA_ON 1
Expand Down
Loading

0 comments on commit 9835f30

Please sign in to comment.