@league-of-foundry-developers/foundry-vtt-types 9.238.0 → 9.249.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/foundry/common/constants.mjs.d.ts +1 -0
- package/src/foundry/common/data/data.mjs/adventureData.d.ts +21 -21
- package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +3 -3
- package/src/foundry/common/data/data.mjs/userData.d.ts +10 -3
- package/src/foundry/common/documents.mjs/baseCombatant.d.ts +2 -4
- package/src/foundry/common/utils/geometry.mjs.d.ts +148 -0
- package/src/foundry/common/utils/helpers.mjs.d.ts +37 -37
- package/src/foundry/common/utils/module.mjs.d.ts +1 -0
- package/src/foundry/common/utils/primitives.mjs.d.ts +7 -0
- package/src/foundry/foundry.js/application.d.ts +138 -110
- package/src/foundry/foundry.js/applications/basePlaceableHUD.d.ts +2 -2
- package/src/foundry/foundry.js/applications/basePlaceableHUDs/drawingHUD.d.ts +2 -2
- package/src/foundry/foundry.js/applications/basePlaceableHUDs/tileHUD.d.ts +2 -2
- package/src/foundry/foundry.js/applications/basePlaceableHUDs/tokenHUD.d.ts +3 -3
- package/src/foundry/foundry.js/applications/cameraViews.d.ts +2 -2
- package/src/foundry/foundry.js/applications/chatPopout.d.ts +3 -3
- package/src/foundry/foundry.js/applications/compendium.d.ts +2 -2
- package/src/foundry/foundry.js/applications/dialog.d.ts +1 -1
- package/src/foundry/foundry.js/applications/filePicker.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplication.d.ts +45 -14
- package/src/foundry/foundry.js/applications/formApplications/avConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/combatTrackerConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/defaultTokenConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheet.d.ts +20 -31
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/activeEffectConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/actorSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts +4 -4
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientSoundConfig.d.ts +4 -4
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/combatantConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/folderConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/itemSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/journalSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/macroConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/measuredTemplateConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/noteConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/permissionControl.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistSoundConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +4 -4
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/tileConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/userConfig.d.ts +7 -7
- package/src/foundry/foundry.js/applications/formApplications/drawingConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/entitySheetConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/gridConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/imagePopout.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/keybindingsConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/moduleManagement.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/permissionConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/settingsConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/worldConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/frameViewer.d.ts +1 -1
- package/src/foundry/foundry.js/applications/headsUpDisplay.d.ts +2 -2
- package/src/foundry/foundry.js/applications/hotbar.d.ts +2 -2
- package/src/foundry/foundry.js/applications/mainMenu.d.ts +2 -2
- package/src/foundry/foundry.js/applications/notifications.d.ts +7 -4
- package/src/foundry/foundry.js/applications/pause.d.ts +2 -2
- package/src/foundry/foundry.js/applications/playerList.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sceneControls.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sceneNavigation.d.ts +3 -3
- package/src/foundry/foundry.js/applications/sidebar.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTab.d.ts +4 -7
- package/src/foundry/foundry.js/applications/sidebarTabs/chatLog.d.ts +3 -3
- package/src/foundry/foundry.js/applications/sidebarTabs/combatTracker.d.ts +26 -28
- package/src/foundry/foundry.js/applications/sidebarTabs/compendiumDirectory.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTabs/settings.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +1 -1
- package/src/foundry/foundry.js/audioContainer.d.ts +28 -10
- package/src/foundry/foundry.js/canvas.d.ts +5 -0
- package/src/foundry/foundry.js/canvasAnimation.d.ts +30 -7
- package/src/foundry/foundry.js/clientDocumentMixin.d.ts +2 -1
- package/src/foundry/foundry.js/clientDocuments/card.d.ts +2 -1
- package/src/foundry/foundry.js/clientDocuments/cards.d.ts +4 -18
- package/src/foundry/foundry.js/clientDocuments/chatMessage.d.ts +2 -2
- package/src/foundry/foundry.js/clientDocuments/combat.d.ts +46 -44
- package/src/foundry/foundry.js/clientDocuments/combatant.d.ts +14 -17
- package/src/foundry/foundry.js/clientDocuments/folder.d.ts +15 -9
- package/src/foundry/foundry.js/clientDocuments/rollTable.d.ts +2 -2
- package/src/foundry/foundry.js/clientKeybindings.d.ts +12 -2
- package/src/foundry/foundry.js/clientSettings.d.ts +2 -2
- package/src/foundry/foundry.js/collections/documentCollection.d.ts +1 -1
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/folders.d.ts +1 -1
- package/src/foundry/foundry.js/collisionResult.d.ts +60 -0
- package/src/foundry/foundry.js/config.d.ts +38 -36
- package/src/foundry/foundry.js/dragDrop.d.ts +27 -34
- package/src/foundry/foundry.js/game.d.ts +89 -43
- package/src/foundry/foundry.js/hooks.d.ts +154 -85
- package/src/foundry/foundry.js/imageHelper.d.ts +26 -2
- package/src/foundry/foundry.js/keyboardManager.d.ts +2 -2
- package/src/foundry/foundry.js/pixi/containers/placeableObject.d.ts +2 -2
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/token.d.ts +2 -2
- package/src/foundry/foundry.js/pixi/index.d.ts +3 -0
- package/src/foundry/foundry.js/pixi/meshes/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/meshes/samplerMesh.d.ts +22 -0
- package/src/foundry/foundry.js/pixi/points/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/points/wallEndpoint.d.ts +92 -0
- package/src/foundry/foundry.js/pixi/polygons/index.d.ts +2 -1
- package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygon.d.ts +98 -0
- package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygons/clockwiseSweepPolygon.d.ts +396 -0
- package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygons/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/rectangles/normalizedRectangle.d.ts +7 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShader.d.ts +11 -37
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShader.d.ts +114 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveBackgroundShader.d.ts +57 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShader.d.ts +47 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/bewitchingWaveColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/chromaColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/emanationColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/energyFieldColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/fairyLightColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/fogColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/ghostLightColorationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/hexaDomeColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/index.d.ts +5 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/lightDomeColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/pulseColorationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/radialRainbowColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/sunburstColorationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/swirlingRainbowColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/torchColorationShader.d.ts +3 -2
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/vortexColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/waveColorationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShader.d.ts +63 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/bewitchingWaveIlluminationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/blackHoleIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/fairyLightIlluminationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/ghostLightIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/index.d.ts +3 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/pulseIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/roilingIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/sunburstIlluminationShader.d.ts +1 -2
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/torchIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/vortexIlluminationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/waveIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/index.d.ts +5 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/baseSamplerShader.d.ts +22 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/index.d.ts +3 -4
- package/src/foundry/foundry.js/pixi/texts/preciseText.d.ts +10 -2
- package/src/foundry/foundry.js/pixi/transforms/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/transforms/synchronizedTransform.d.ts +38 -0
- package/src/foundry/foundry.js/pointSource.d.ts +59 -328
- package/src/foundry/foundry.js/pointSources/index.d.ts +3 -0
- package/src/foundry/foundry.js/pointSources/lightSource.d.ts +417 -0
- package/src/foundry/foundry.js/pointSources/soundSource.d.ts +46 -0
- package/src/foundry/foundry.js/pointSources/visionSource.d.ts +125 -0
- package/src/foundry/foundry.js/polygonEdge.d.ts +26 -0
- package/src/foundry/foundry.js/polygonVertex.d.ts +89 -0
- package/src/foundry/foundry.js/quadtree.d.ts +2 -2
- package/src/foundry/foundry.js/quadtreeCulling.d.ts +11 -0
- package/src/foundry/foundry.js/ray.d.ts +156 -162
- package/src/foundry/foundry.js/rays/index.d.ts +1 -0
- package/src/foundry/foundry.js/rays/sightRay.d.ts +34 -0
- package/src/foundry/foundry.js/roll.d.ts +40 -43
- package/src/foundry/foundry.js/screenCulling.d.ts +19 -0
- package/src/foundry/foundry.js/searchFilter.d.ts +37 -33
- package/src/foundry/foundry.js/specialEffect.d.ts +1 -1
- package/src/foundry/foundry.js/textureLoader.d.ts +28 -18
- package/src/foundry/foundry.js/textureUtils.d.ts +5 -8
- package/src/foundry/foundry.js/videoHelper.d.ts +2 -1
- package/src/foundry/index.d.ts +26 -27
- package/src/foundry/foundry.js/pixi/polygons/sourcePolygon.d.ts +0 -25
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShader.d.ts +0 -21
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/chromaColorationShader.d.ts +0 -18
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/emanationColorationShader.d.ts +0 -17
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/energyFieldColorationShader.d.ts +0 -18
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/fogColorationShader.d.ts +0 -17
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/hexaDomeColorationShader.d.ts +0 -17
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/lightDomeColorationShader.d.ts +0 -17
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardIlluminationShader.d.ts +0 -22
@@ -0,0 +1,114 @@
|
|
1
|
+
interface LightingTechnique {
|
2
|
+
/** The numeric identifier of the technique */
|
3
|
+
id: number;
|
4
|
+
|
5
|
+
/** The localization string that labels the technique */
|
6
|
+
label: string;
|
7
|
+
|
8
|
+
/** The shader fragment when the technique is used */
|
9
|
+
shader: string;
|
10
|
+
}
|
11
|
+
|
12
|
+
/**
|
13
|
+
* This class defines an interface which all adaptive lighting shaders extend.
|
14
|
+
*/
|
15
|
+
declare class AdaptiveLightingShader extends AbstractBaseShader {
|
16
|
+
/** @override */
|
17
|
+
static vertexShader: string;
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Useful constant values computed at compile time
|
21
|
+
*/
|
22
|
+
static CONSTANTS: string;
|
23
|
+
|
24
|
+
/**
|
25
|
+
* The coloration technique shader fragment
|
26
|
+
*/
|
27
|
+
static get ADAPTIVE_COLORATION(): string;
|
28
|
+
|
29
|
+
/**
|
30
|
+
* Fade easing to use with distance in interval [0,1]
|
31
|
+
* @param amp - (default: `3`)
|
32
|
+
* @param coef - (default: `0.80`)
|
33
|
+
*/
|
34
|
+
static FADE(amp?: number, coef?: number): string;
|
35
|
+
|
36
|
+
/**
|
37
|
+
* Fractional Brownian Motion for a given number of octaves
|
38
|
+
* @param octaves - (default: `4`)
|
39
|
+
* @param amp - (default: `1.0`)
|
40
|
+
*/
|
41
|
+
static FBM(octaves?: number, amp?: number): string;
|
42
|
+
|
43
|
+
/**
|
44
|
+
* A conventional pseudo-random number generator with the "golden" numbers, based on uv position
|
45
|
+
*/
|
46
|
+
static PRNG: string;
|
47
|
+
|
48
|
+
/**
|
49
|
+
* A Vec3 pseudo-random generator, based on uv position
|
50
|
+
*/
|
51
|
+
static PRNG3D: string;
|
52
|
+
|
53
|
+
/**
|
54
|
+
* A conventional noise generator
|
55
|
+
*/
|
56
|
+
static NOISE: string;
|
57
|
+
|
58
|
+
/**
|
59
|
+
* Convert a Hue-Saturation-Brightness color to RGB - useful to convert polar coordinates to RGB
|
60
|
+
*/
|
61
|
+
static HSB2RGB: string;
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Fast approximate perceived brightness computation
|
65
|
+
* Using Digital ITU BT.709 : Exact luminance factors
|
66
|
+
*/
|
67
|
+
static PERCEIVED_BRIGHTNESS: string;
|
68
|
+
|
69
|
+
/**
|
70
|
+
* Switch between an inner and outer color, by comparing distance from center to ratio
|
71
|
+
* Apply a strong gradient between the two areas if gradual uniform is set to true
|
72
|
+
*/
|
73
|
+
static SWITCH_COLOR: string;
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Transition between bright and dim colors, if requested
|
77
|
+
*/
|
78
|
+
static TRANSITION: string;
|
79
|
+
|
80
|
+
/**
|
81
|
+
* Constrain light to LOS
|
82
|
+
*/
|
83
|
+
static CONSTRAIN_TO_LOS: string;
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Incorporate falloff if a gradual uniform is requested
|
87
|
+
*/
|
88
|
+
static FALLOFF: string;
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Compute distance from the light center
|
92
|
+
*/
|
93
|
+
static DISTANCE: string;
|
94
|
+
|
95
|
+
/**
|
96
|
+
* A mapping of available coloration techniques
|
97
|
+
*/
|
98
|
+
static COLORATION_TECHNIQUES: AdaptiveLightingShader.ColorationTechniques;
|
99
|
+
}
|
100
|
+
|
101
|
+
declare namespace AdaptiveLightingShader {
|
102
|
+
interface ColorationTechniques extends Record<string, LightingTechnique> {
|
103
|
+
LEGACY: LightingTechnique;
|
104
|
+
LUMINANCE: LightingTechnique;
|
105
|
+
INTERNAL_HALO: LightingTechnique;
|
106
|
+
EXTERNAL_HALO: LightingTechnique;
|
107
|
+
COLOR_BURN: LightingTechnique;
|
108
|
+
INTERNAL_BURN: LightingTechnique;
|
109
|
+
EXTERNAL_BURN: LightingTechnique;
|
110
|
+
LOW_ABSORPTION: LightingTechnique;
|
111
|
+
HIGH_ABSORPTION: LightingTechnique;
|
112
|
+
INVERT_ABSORPTION: LightingTechnique;
|
113
|
+
}
|
114
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/**
|
2
|
+
* The default coloration shader used by standard rendering and animations
|
3
|
+
* A fragment shader which creates a solid light source.
|
4
|
+
*/
|
5
|
+
declare class AdaptiveBackgroundShader extends AdaptiveLightingShader {
|
6
|
+
/**
|
7
|
+
* Constrain light to LOS
|
8
|
+
*/
|
9
|
+
static CONSTRAIN_TO_LOS: string;
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Color adjustments : exposure, contrast and shadows
|
13
|
+
*/
|
14
|
+
static ADJUSTMENTS: string;
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Incorporate falloff if a gradual uniform is requested
|
18
|
+
*/
|
19
|
+
static FALLOFF: string;
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Memory allocations for the Adaptive Background Shader
|
23
|
+
*/
|
24
|
+
static SHADER_HEADER: string;
|
25
|
+
|
26
|
+
/** @override */
|
27
|
+
static fragmentShader: string;
|
28
|
+
|
29
|
+
/**
|
30
|
+
* @override
|
31
|
+
* @defaultValue
|
32
|
+
* ```javascript
|
33
|
+
* {
|
34
|
+
* shadows: 0.0,
|
35
|
+
* contrast: 0.0,
|
36
|
+
* exposure: 0.0,
|
37
|
+
* saturation: 0.0,
|
38
|
+
* alpha: 1.0,
|
39
|
+
* ratio: 0.5,
|
40
|
+
* time: 0,
|
41
|
+
* screenDimensions: [1, 1],
|
42
|
+
* uBkgSampler: 0,
|
43
|
+
* fovTexture: 0,
|
44
|
+
* darkness: false,
|
45
|
+
* gradual: false,
|
46
|
+
* useFov: true
|
47
|
+
* }
|
48
|
+
* ```
|
49
|
+
*/
|
50
|
+
static defaultUniforms: AbstractBaseShader.Uniforms;
|
51
|
+
|
52
|
+
/**
|
53
|
+
* Flag whether the background shader is currently required.
|
54
|
+
* If key uniforms are at their default values, we don't need to render the background container.
|
55
|
+
*/
|
56
|
+
get isRequired(): boolean;
|
57
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
/**
|
2
|
+
* The default coloration shader used by standard rendering and animations.
|
3
|
+
* A fragment shader which creates a light source.
|
4
|
+
*/
|
5
|
+
declare class AdaptiveColorationShader extends AdaptiveLightingShader {
|
6
|
+
/**
|
7
|
+
* Incorporate falloff if a falloff uniform is requested
|
8
|
+
*/
|
9
|
+
static FALLOFF: string;
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Color adjustments : exposure, contrast and shadows
|
13
|
+
*/
|
14
|
+
static ADJUSTMENTS: string;
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Memory allocations for the Adaptive Coloration Shader
|
18
|
+
*/
|
19
|
+
static SHADER_HEADER: string;
|
20
|
+
|
21
|
+
/** @override */
|
22
|
+
static fragmentShader: string;
|
23
|
+
|
24
|
+
/**
|
25
|
+
* @override
|
26
|
+
* @defaultValue
|
27
|
+
* ```javascript
|
28
|
+
* {
|
29
|
+
* technique: 1,
|
30
|
+
* ratio: 0.0,
|
31
|
+
* shadows: 0.0,
|
32
|
+
* saturation: 0.0,
|
33
|
+
* alpha: 1.0,
|
34
|
+
* color: [1.0, 1.0, 1.0],
|
35
|
+
* time: 0,
|
36
|
+
* intensity: 5,
|
37
|
+
* darkness: false,
|
38
|
+
* screenDimensions: [1, 1],
|
39
|
+
* uBkgSampler: 0,
|
40
|
+
* fovTexture: 0,
|
41
|
+
* gradual: true,
|
42
|
+
* useFov: true
|
43
|
+
* }
|
44
|
+
* ```
|
45
|
+
*/
|
46
|
+
static defaultUniforms: AbstractBaseShader.Uniforms;
|
47
|
+
}
|
@@ -1,11 +1,16 @@
|
|
1
|
+
import './bewitchingWaveColorationShader';
|
1
2
|
import './chromaColorationShader';
|
2
3
|
import './emanationColorationShader';
|
3
4
|
import './energyFieldColorationShader';
|
5
|
+
import './fairyLightColorationShader';
|
4
6
|
import './fogColorationShader';
|
5
7
|
import './ghostLightColorationShader';
|
6
8
|
import './hexaDomeColorationShader';
|
7
9
|
import './lightDomeColorationShader';
|
8
10
|
import './pulseColorationShader';
|
11
|
+
import './radialRainbowColorationShader';
|
9
12
|
import './sunburstColorationShader';
|
13
|
+
import './swirlingRainbowColorationShader';
|
10
14
|
import './torchColorationShader';
|
15
|
+
import './vortexColorationShader';
|
11
16
|
import './waveColorationShader';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Torch animation coloration shader
|
3
3
|
*/
|
4
|
-
declare class TorchColorationShader extends
|
4
|
+
declare class TorchColorationShader extends AdaptiveColorationShader {
|
5
5
|
static fragmentShader: string;
|
6
6
|
|
7
7
|
/**
|
@@ -9,7 +9,8 @@ declare class TorchColorationShader extends StandardColorationShader {
|
|
9
9
|
* @defaultValue
|
10
10
|
* ```typescript
|
11
11
|
* Object.assign({}, super.defaultUniforms, {
|
12
|
-
* ratio: 0
|
12
|
+
* ratio: 0,
|
13
|
+
* brightnessPulse: 1
|
13
14
|
* })
|
14
15
|
* ```
|
15
16
|
*/
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/**
|
2
|
+
* The default coloration shader used by standard rendering and animations
|
3
|
+
* A fragment shader which creates a solid light source.
|
4
|
+
*/
|
5
|
+
declare class AdaptiveIlluminationShader extends AdaptiveLightingShader {
|
6
|
+
/**
|
7
|
+
* Constrain light to LOS
|
8
|
+
*/
|
9
|
+
static CONSTRAIN_TO_LOS: string;
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Incorporate falloff if a gradual uniform is requested
|
13
|
+
*/
|
14
|
+
static FALLOFF: string;
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Color adjustments : exposure, contrast and shadows
|
18
|
+
*/
|
19
|
+
static ADJUSTMENTS: string;
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Memory allocations for the Adaptive Illumination Shader
|
23
|
+
*/
|
24
|
+
static SHADER_HEADER: string;
|
25
|
+
|
26
|
+
/** @override */
|
27
|
+
static fragmentShader: string;
|
28
|
+
|
29
|
+
/**
|
30
|
+
* @override
|
31
|
+
* @defaultValue
|
32
|
+
* ```javascript
|
33
|
+
* {
|
34
|
+
* alpha: 1.0,
|
35
|
+
* ratio: 0.5,
|
36
|
+
* color: [0.9333333333333333, 0.9333333333333333, 0.9333333333333333],
|
37
|
+
* colorDim: [0.5, 0.5, 0.5],
|
38
|
+
* colorBright: [1.0, 1.0, 1.0],
|
39
|
+
* colorBackground: [1.0, 1.0, 1.0],
|
40
|
+
* darkness: false,
|
41
|
+
* exposure: 0.0,
|
42
|
+
* fovTexture: 0,
|
43
|
+
* gradual: false,
|
44
|
+
* intensity: 5,
|
45
|
+
* saturation: 0.0,
|
46
|
+
* screenDimensions: [1, 1],
|
47
|
+
* shadows: 0.0,
|
48
|
+
* time: 0,
|
49
|
+
* uBkgSampler: 0,
|
50
|
+
* useFov: true
|
51
|
+
* }
|
52
|
+
* ```
|
53
|
+
*/
|
54
|
+
static defaultUniforms: AbstractBaseShader.Uniforms;
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Determine the correct illumination penalty to apply for a given darkness level and luminosity
|
58
|
+
* @param darknessLevel - The current darkness level on [0,1]
|
59
|
+
* @param luminosity - The light source luminosity on [-1,1]
|
60
|
+
* @returns The amount of penalty to apply on [0,1]
|
61
|
+
*/
|
62
|
+
getDarknessPenalty(darknessLevel: number, luminosity: number): number;
|
63
|
+
}
|
@@ -1,7 +1,10 @@
|
|
1
|
+
import './bewitchingWaveIlluminationShader';
|
1
2
|
import './blackHoleIlluminationShader';
|
3
|
+
import './fairyLightIlluminationShader';
|
2
4
|
import './ghostLightIlluminationShader';
|
3
5
|
import './pulseIlluminationShader';
|
4
6
|
import './roilingIlluminationShader';
|
5
7
|
import './sunburstIlluminationShader';
|
6
8
|
import './torchIlluminationShader';
|
9
|
+
import './vortexIlluminationShader';
|
7
10
|
import './waveIlluminationShader';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* Roiling mass illumination shader - intended primarily for darkness
|
3
3
|
*/
|
4
|
-
declare class RoilingIlluminationShader extends
|
4
|
+
declare class RoilingIlluminationShader extends AdaptiveIlluminationShader {
|
5
5
|
static fragmentShader: string;
|
6
6
|
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* A simple shader to emulate a PIXI.Sprite with a PIXI.Mesh (but faster!)
|
3
|
+
*/
|
4
|
+
declare class BaseSamplerShader extends AbstractBaseShader {
|
5
|
+
/** @override */
|
6
|
+
static vertexShader: string;
|
7
|
+
|
8
|
+
/** @override */
|
9
|
+
static fragmentShader: string;
|
10
|
+
|
11
|
+
/**
|
12
|
+
* @override
|
13
|
+
* @defaultValue
|
14
|
+
* ```javascript
|
15
|
+
* {
|
16
|
+
* screenDimensions: [1, 1],
|
17
|
+
* sampler: 0
|
18
|
+
* };
|
19
|
+
* ```
|
20
|
+
*/
|
21
|
+
static defaultUniforms: AbstractBaseShader.Uniforms;
|
22
|
+
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import './
|
2
|
-
import './
|
3
|
-
import './
|
4
|
-
import './standardIlluminationShaders';
|
1
|
+
import './adaptiveLightingShader';
|
2
|
+
import './adaptiveLightingShaders';
|
3
|
+
import './baseSamplerShader';
|
@@ -5,6 +5,14 @@
|
|
5
5
|
declare class PreciseText extends PIXI.Text {
|
6
6
|
constructor(...args: ConstructorParameters<typeof PIXI.Text>);
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
/**
|
9
|
+
* Prepare a TextStyle object which merges the canvas defaults with user-provided options
|
10
|
+
* @param anchor - A text anchor point from CONST.TEXT_ANCHOR_POINTS
|
11
|
+
* @param options - Additional options merged with the default TextStyle
|
12
|
+
* @returns The prepared TextStyle
|
13
|
+
*/
|
14
|
+
static getTextStyle({
|
15
|
+
anchor,
|
16
|
+
...options
|
17
|
+
}?: { anchor?: foundry.CONST.TEXT_ANCHOR_POINTS } & ConstructorParameters<typeof PIXI.TextStyle>[0]): PIXI.TextStyle;
|
10
18
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
import './synchronizedTransform';
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* An extension of PIXI.Transform.
|
3
|
+
* This uses a different DisplayObject than the current parent as the reference for the worldTransform.
|
4
|
+
*/
|
5
|
+
declare class SynchronizedTransform extends PIXI.Transform {
|
6
|
+
constructor(transform: PIXI.Transform);
|
7
|
+
|
8
|
+
/**
|
9
|
+
* A list of attributes from the transform reference which should be synchronized
|
10
|
+
* @defaultValue
|
11
|
+
* ```javascript
|
12
|
+
* [
|
13
|
+
* "localTransform", "position", "scale", "pivot", "skew", "_rotation",
|
14
|
+
* "_cx", "_sx", "_cy", "_sy", "_localID", "_currentLocalID"
|
15
|
+
* ];
|
16
|
+
* ```
|
17
|
+
*/
|
18
|
+
static synchronizedAttributes: string[];
|
19
|
+
|
20
|
+
/**
|
21
|
+
* A Transform instance which defines the reference point for the worldTransform
|
22
|
+
*/
|
23
|
+
get reference(): PIXI.Transform;
|
24
|
+
|
25
|
+
set reference(value: PIXI.Transform);
|
26
|
+
|
27
|
+
/** @internal */
|
28
|
+
protected _reference: PIXI.Transform;
|
29
|
+
|
30
|
+
/** @internal */
|
31
|
+
protected _syncLocalID: number;
|
32
|
+
|
33
|
+
/** @override */
|
34
|
+
updateTransform(parentTransform: PIXI.Transform): void;
|
35
|
+
|
36
|
+
/** @override */
|
37
|
+
updateLocalTransform(): void;
|
38
|
+
}
|