-
Notifications
You must be signed in to change notification settings - Fork 50
/
package.json
281 lines (281 loc) · 12.3 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
{
"name": "shader-toy",
"displayName": "Shader Toy",
"description": "Live preview of GLSL shaders similar to shadertoy",
"version": "0.11.1",
"publisher": "stevensona",
"license": "MIT",
"repository": {
"url": "https://github.com/stevensona/shader-toy.git"
},
"bugs": {
"url": "https://github.com/stevensona/shader-toy/issues"
},
"engines": {
"vscode": "^1.79.1"
},
"categories": [
"Other"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"properties": {
"shader-toy.forceAspectRatio": {
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
}
],
"default": [
0,
0
],
"description": "Force the rendering into a specific aspect ratio. Set either to zero or negative to ignore."
},
"shader-toy.showCompileErrorsAsDiagnostics": {
"type": "boolean",
"default": true,
"description": "Show all compile errors directly in the editor as diagnostics."
},
"shader-toy.omitDeprecationWarnings": {
"type": "boolean",
"default": false,
"description": "Omit warnings when using a deprecated feature, replacing those with a single warning on activating the extension. Be careful with this setting, as shaders might break unpredictably in future updates."
},
"shader-toy.enableGlslifySupport": {
"type": "boolean",
"default": false,
"description": "Enable support for glslify, which will transform shader code after all transformations this extension does. Line numbers for errors are currently disable when this option is enabled."
},
"shader-toy.reloadAutomatically": {
"type": "boolean",
"default": true,
"description": "Master switch for all automatic reloads."
},
"shader-toy.reloadOnEditText": {
"type": "boolean",
"default": true,
"description": "Reload OpenGL viewport when the opened file contents are changed."
},
"shader-toy.reloadOnEditTextDelay": {
"type": "number",
"default": 1,
"description": "Delay in seconds between an edit of the opened file and the reload of OpenGL viewport."
},
"shader-toy.reloadOnChangeEditor": {
"type": "boolean",
"default": false,
"description": "Reload OpenGL viewport when editor changes."
},
"shader-toy.reloadOnSaveFile": {
"type": "boolean",
"default": true,
"description": "Reload OpenGL viewport when editor is saved."
},
"shader-toy.resetStateOnChangeEditor": {
"type": "boolean",
"default": true,
"description": "Reset state of time, mouse and keyboard when reloading OpenGL viewport through an editor change."
},
"shader-toy.showScreenshotButton": {
"type": "boolean",
"default": true,
"description": "Shows a screenshot button in the OpenGL viewport which allows to save the current frame as a png file."
},
"shader-toy.screenshotResolution": {
"type": "array",
"items": [
{
"type": "number"
},
{
"type": "number"
}
],
"default": [
0,
0
],
"description": "Manually set the resolution of a screenshot. Set either to zero or negative to use the viewports resolution."
},
"shader-toy.showRecordButton": {
"type": "boolean",
"default": true,
"description": "Shows a record button in the OpenGL viewport which allows to start a recording of the viewport."
},
"shader-toy.recordTargetFramerate": {
"type": "number",
"default": 30,
"description": "Framerate that is targeted when using the record button."
},
"shader-toy.recordVideoContainer": {
"type": "string",
"default": "webm",
"description": "Video file container. Currently only webm is supported, but mp4support is coming."
},
"shader-toy.recordVideoCodec": {
"type": "string",
"default": "vp8",
"enum": ["vp8", "vp9", "h264", "avc1"],
"description": "Video codec. vp8, vp9, h264 and avc1 are all supported. Default it vp8."
},
"shader-toy.recordVideoBitRate": {
"type": "number",
"default": 2500000,
"description": "Video encoding bit rate in bits/seconds."
},
"shader-toy.recordMaxDuration": {
"type": "number",
"default": 0,
"description": "Maximum recording duration in seconds. 0 (the default) will keep recording until the record button is pressed again."
},
"shader-toy.recordOffline": {
"type": "boolean",
"default": false,
"description": "Enable high-quality offline recording."
},
"shader-toy.recordOfflineFormat": {
"type": "string",
"default": "webm",
"description": "Offline recording quality. Possible value are webm, gif, png and jpg."
},
"shader-toy.recordOfflineQuality": {
"type": "number",
"default": 80,
"description": "Offline recording format. 0 is lowest and 100 highest. Applies when format is webm or jpg."
},
"shader-toy.showPauseButton": {
"type": "boolean",
"default": true,
"description": "Shows a pause button in the OpenGL viewport which allows to pause the rendering."
},
"shader-toy.pauseWholeRender": {
"type": "boolean",
"default": true,
"description": "Determines whether pausing will pause only time thus still render and allow input, or pause everything."
},
"shader-toy.pauseMaintainedOnReload": {
"type": "boolean",
"default": false,
"description": "If unticked the render wil un-pause when reloading, otherwise it will stay paused if it was paused before."
},
"shader-toy.printShaderFrameTime": {
"type": "boolean",
"default": true,
"description": "Display shader frame time graph in corner of display."
},
"shader-toy.warnOnUndefinedTextures": {
"type": "boolean",
"default": true,
"description": "If enabled the user is warned when a channel is used in code but there is no definition for said channel, likely resulting in a bug in the shader."
},
"shader-toy.enabledAudioInput": {
"type": "boolean",
"default": false,
"description": "Allow using media files as inputs in shaders. Note that the feature is experimental and should be used with caution."
},
"shader-toy.audioDomainSize": {
"type": "number",
"default": 512,
"description": "Size of the domain used for four transformation when using audio as an input."
},
"shader-toy.testCompileIncludedFiles": {
"type": "boolean",
"default": true,
"description": "If enabled all included files will be compiled on their own. Some included files may not compile on their own and require this to be disabled."
},
"shader-toy.shaderToyStrictCompatibility": {
"type": "boolean",
"default": false,
"description": "This setting will assume your shaders follow the standards set on the online version of ShaderToy, e.g. you have a mainImage function defined. Use this if you have issues with shaders from shadertoy.com in the VSCode extension, but not if you regularly use shaders defining a regular main function."
}
}
},
"commands": [
{
"command": "shader-toy.showGlslPreview",
"title": "Shader Toy: Show GLSL Preview"
},
{
"command": "shader-toy.showStaticGlslPreview",
"title": "Shader Toy: Show Static GLSL Preview"
},
{
"command": "shader-toy.createPortableGlslPreview",
"title": "Shader Toy: Create Portable GLSL Preview"
},
{
"command": "shader-toy.pauseGlslPreviews",
"title": "Shader Toy: Pause/Play GLSL Previews"
},
{
"command": "shader-toy.saveGlslPreviewScreenShots",
"title": "Shader Toy: Save GLSL Preview Screenshots"
}
],
"menus": {
"editor/context": [
{
"command": "shader-toy.showGlslPreview",
"group": "ShaderToy-Core"
},
{
"command": "shader-toy.showStaticGlslPreview",
"group": "ShaderToy-Core"
},
{
"command": "shader-toy.createPortableGlslPreview",
"group": "ShaderToy"
},
{
"command": "shader-toy.pauseGlslPreviews",
"group": "ShaderToy"
},
{
"command": "shader-toy.saveGlslPreviewScreenShots",
"group": "ShaderToy"
}
]
}
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"pretest": "npm run compile",
"test": "node ./out/test/run_tests.js",
"deploy": "vsce publish",
"format": "eslint --fix \"src/**\" --config .eslintrc.json"
},
"dependencies": {
"compare-versions": "^5.0.3",
"glslify": "^7.1.1",
"mime": "^3.0.0"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mime": "^3.0.1",
"@types/mocha": "^10.0.1",
"@types/node": "^20.3.1",
"@types/vscode": "^1.79.1",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@vscode/test-electron": "^2.4.0",
"@vscode/vsce": "^2.21.0",
"eslint": "^8.49.0",
"glob": "^10.2.7",
"mocha": "^10.2.0",
"ts-loader": "^9.4.3",
"typescript": "^5.4.5",
"webpack": "^5.87.0",
"webpack-cli": "^5.1.4"
},
"icon": "resources/thumb.png"
}