mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-10 19:25:08 -05:00
39 lines
918 B
C
39 lines
918 B
C
#ifndef _SFG_SETTINGS_H
|
|
#define _SFG_SETTINGS_H
|
|
|
|
#define SFG_FPS 60
|
|
#define SFG_RESOLUTION_X 1024
|
|
#define SFG_RESOLUTION_Y 768
|
|
|
|
/**
|
|
Hint as to whether run in fullscreen, if the platform allows it.
|
|
*/
|
|
#define SFG_FULLSCREEN 0
|
|
|
|
/**
|
|
Whether shadows (fog) should be dithered, i.e. more smooth (needs a bit more
|
|
performance).
|
|
*/
|
|
#define SFG_DITHERED_SHADOW 1
|
|
|
|
/**
|
|
Maximum number of squares that will be traversed by any cast ray. Smaller
|
|
number is faster but can cause visual artifacts.
|
|
*/
|
|
#define SFG_RAYCASTING_MAX_STEPS 30
|
|
|
|
/**
|
|
Maximum number of hits any cast ray will register. Smaller number is faster
|
|
but can cause visual artifacts.
|
|
*/
|
|
#define SFG_RAYCASTING_MAX_HITS 10
|
|
|
|
/**
|
|
How many times rendering should be subsampled horizontally. Bigger number
|
|
can significantly improve performance (by casting fewer rays), but can look
|
|
a little worse.
|
|
*/
|
|
#define SFG_RAYCASTING_SUBSAMPLE 1
|
|
|
|
#endif // guard
|