Skip to content

Commit 2e582ee

Browse files
committed
Merge branch 'master' into ccapture
# Conflicts: # README.md
2 parents c30887b + a961281 commit 2e582ee

File tree

6 files changed

+2
-48
lines changed

6 files changed

+2
-48
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ The default is real-time rendering to activate offline rendering set `shader-toy
163163

164164
### Shared parameters
165165

166-
* `shader-toy.forceResolution`: Set canvas resolution, this will also set the resolution of the recorded video file. By default, the canvas will stretch to fill the entire window.
167166
* `shader-toy.recordTargetFramerate`: Set recording target frame-rate. Default is 30fps.
168167
* `shader-toy.recordMaxDuration`: Maximum recording duration in seconds. 0 (the default) will keep recording until the record button is pressed again.
169168

@@ -201,7 +200,6 @@ Contributions of any kind are welcome and encouraged.
201200
## Release Notes
202201

203202
### 0.11.4
204-
* Added `shader-toy.forceResolution` (force canvas resolution).
205203
* Added `shader-toy.recordVideoContainer` (set video file container).
206204
* Added `shader-toy.recordVideoCodec` (set video codec).
207205
* Added `shader-toy.recordVideoBitRate` (set recording bit rate).

package.json

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,6 @@
3737
],
3838
"description": "Force the rendering into a specific aspect ratio. Set either to zero or negative to ignore."
3939
},
40-
"shader-toy.forceResolution": {
41-
"type": "array",
42-
"items": [
43-
{
44-
"type": "number"
45-
},
46-
{
47-
"type": "number"
48-
}
49-
],
50-
"default": [
51-
0,
52-
0
53-
],
54-
"description": "Force the rendering into a specific resolution. Set either to zero or negative to ignore."
55-
},
5640
"shader-toy.showCompileErrorsAsDiagnostics": {
5741
"type": "boolean",
5842
"default": true,
@@ -137,6 +121,7 @@
137121
"shader-toy.recordVideoCodec": {
138122
"type": "string",
139123
"default": "vp8",
124+
"enum": ["vp8", "vp9", "h264", "avc1"],
140125
"description": "Video codec. vp8, vp9, h264 and avc1 are all supported. Default it vp8."
141126
},
142127
"shader-toy.recordVideoBitRate": {

resources/webview_base.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,12 +410,6 @@
410410
let forcedAspectRatio = forcedAspects[0] / forcedAspects[1];
411411
let aspectRatio = width / height;
412412

413-
let forcedResolutions = [<!-- Forced Resolution -->];
414-
if (forcedResolutions[0] > 0 && forcedResolutions[1] > 0)
415-
{
416-
return new THREE.Vector3(forcedResolutions[0], forcedResolutions[1], 1);
417-
}
418-
419413
if (forcedAspectRatio <= 0 || !isFinite(forcedAspectRatio)) {
420414
let resolution = new THREE.Vector3(width, height, 1.0);
421415
return resolution;

src/extensions/forced_resolution_extension.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/extensions/user_interface/record_video_codec_extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ export class RecordVideoCodecExtension implements WebviewExtension {
1212
public generateContent(): string {
1313
return `"${this.recordVideoCodec}"`;
1414
}
15-
}
15+
}

src/webviewcontentprovider.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { InitialFlyControlPositionExtension } from './extensions/initial_fly_con
1515
import { InitialFlyControlRotationExtension } from './extensions/initial_fly_control_rotation_extension';
1616

1717
import { ForcedAspectExtension } from './extensions/forced_aspect_extension';
18-
import { ForcedResolutionExtension } from './extensions/forced_resolution_extension';
1918
import { ForcedScreenshotResolutionExtension } from './extensions/forced_screenshot_resolution_extension';
2019

2120
import { ShaderPreambleExtension } from './extensions/preamble_extension';
@@ -226,13 +225,6 @@ export class WebviewContentProvider {
226225
const forcedAspectExtension = new ForcedAspectExtension(forcedAspect);
227226
this.webviewAssembler.addReplaceModule(forcedAspectExtension, 'let forcedAspects = [<!-- Forced Aspect -->];', '<!-- Forced Aspect -->');
228227

229-
let forcedResolution = this.context.getConfig<[number, number]>('forceResolution');
230-
if (forcedResolution === undefined) {
231-
forcedResolution = [-1, -1];
232-
}
233-
const forcedResolutionExtension = new ForcedResolutionExtension(forcedResolution);
234-
this.webviewAssembler.addReplaceModule(forcedResolutionExtension, 'let forcedResolutions = [<!-- Forced Resolution -->];', '<!-- Forced Resolution -->');
235-
236228
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
237229
// Keyboard
238230
let keyboardShaderExtension: KeyboardShaderExtension | undefined;

0 commit comments

Comments
 (0)