mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
style: format visual effects and shader definitions
This commit is contained in:
1 parent
c30f7cc3be
commit
1bbb6d9c70
8 files changed
+356
-83
No files matched your search
+12
-2
@@ -9,7 +9,14 @@ import { BLOOM_INTENSITY_DEFAULT } from '../bloom.js';
|
||||
/** Duration (ms) for shader intensity crossfade between style presets. */
|
||||
export const TRANSITION_DURATION_MS = 500;
|
||||
/** Map of style name to its GLSL shader module for post-process stages. */
|
||||
export const STYLES = { retro: retroShader, surveillance: nightVisionShader, thermal: thermalShader, anime: animeShader, noir: noirShader, snow: snowShader };
|
||||
export const STYLES = {
|
||||
retro: retroShader,
|
||||
surveillance: nightVisionShader,
|
||||
thermal: thermalShader,
|
||||
anime: animeShader,
|
||||
noir: noirShader,
|
||||
snow: snowShader,
|
||||
};
|
||||
|
||||
/**
|
||||
* The tactical detection look: Dense at 75%.
|
||||
@@ -28,7 +35,10 @@ export const STYLES = { retro: retroShader, surveillance: nightVisionShader, the
|
||||
* SPARSE. Declared ahead of GLOBAL_POST_DEFAULTS because that baseline now reads
|
||||
* from it.
|
||||
*/
|
||||
export const MILITARY_DETECTION_PRESET = Object.freeze({ mode: 'dense', densityPct: 75 });
|
||||
export const MILITARY_DETECTION_PRESET = Object.freeze({
|
||||
mode: 'dense',
|
||||
densityPct: 75,
|
||||
});
|
||||
|
||||
/** Baseline post-processing settings applied on first load (before share-link restore). */
|
||||
export const GLOBAL_POST_DEFAULTS = {
|
||||
|
||||
Reference in new issue
Block a user