@onerjs/core 8.32.3 → 8.32.5
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/Engines/Extensions/engine.computeShader.d.ts +2 -3
- package/Engines/Extensions/engine.computeShader.js.map +1 -1
- package/Engines/ICanvas.d.ts +3 -3
- package/Engines/ICanvas.js.map +1 -1
- package/Engines/webgpuEngine.js +2 -2
- package/Engines/webgpuEngine.js.map +1 -1
- package/FrameGraph/Node/Blocks/Rendering/baseObjectRendererBlock.d.ts +3 -0
- package/FrameGraph/Node/Blocks/Rendering/baseObjectRendererBlock.js +29 -14
- package/FrameGraph/Node/Blocks/Rendering/baseObjectRendererBlock.js.map +1 -1
- package/FrameGraph/Node/Blocks/Rendering/geometryRendererBlock.d.ts +12 -41
- package/FrameGraph/Node/Blocks/Rendering/geometryRendererBlock.js +106 -184
- package/FrameGraph/Node/Blocks/Rendering/geometryRendererBlock.js.map +1 -1
- package/FrameGraph/Passes/renderPass.js +3 -1
- package/FrameGraph/Passes/renderPass.js.map +1 -1
- package/FrameGraph/Tasks/Rendering/geometryRendererTask.d.ts +17 -58
- package/FrameGraph/Tasks/Rendering/geometryRendererTask.js +112 -122
- package/FrameGraph/Tasks/Rendering/geometryRendererTask.js.map +1 -1
- package/FrameGraph/Tasks/Rendering/objectRendererTask.d.ts +11 -0
- package/FrameGraph/Tasks/Rendering/objectRendererTask.js +62 -26
- package/FrameGraph/Tasks/Rendering/objectRendererTask.js.map +1 -1
- package/FrameGraph/Tasks/Texture/clearTextureTask.js +18 -8
- package/FrameGraph/Tasks/Texture/clearTextureTask.js.map +1 -1
- package/FrameGraph/frameGraphContext.js +2 -2
- package/FrameGraph/frameGraphContext.js.map +1 -1
- package/FrameGraph/frameGraphRenderContext.js +3 -3
- package/FrameGraph/frameGraphRenderContext.js.map +1 -1
- package/FrameGraph/frameGraphTask.js +2 -2
- package/FrameGraph/frameGraphTask.js.map +1 -1
- package/FrameGraph/frameGraphUtils.d.ts +2 -2
- package/FrameGraph/frameGraphUtils.js +6 -6
- package/FrameGraph/frameGraphUtils.js.map +1 -1
- package/Inputs/scene.inputManager.d.ts +1 -1
- package/Inputs/scene.inputManager.js +12 -10
- package/Inputs/scene.inputManager.js.map +1 -1
- package/Materials/materialHelper.geometryrendering.d.ts +5 -1
- package/Materials/materialHelper.geometryrendering.js +11 -2
- package/Materials/materialHelper.geometryrendering.js.map +1 -1
- package/Rendering/objectRenderer.d.ts +6 -2
- package/Rendering/objectRenderer.js +69 -63
- package/Rendering/objectRenderer.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "../../../../tslib.es6.js";
|
|
2
|
-
import {
|
|
2
|
+
import { NodeRenderGraphBaseObjectRendererBlock } from "./baseObjectRendererBlock.js";
|
|
3
3
|
import { RegisterClass } from "../../../../Misc/typeStore.js";
|
|
4
4
|
import { NodeRenderGraphBlockConnectionPointTypes } from "../../Types/nodeRenderGraphTypes.js";
|
|
5
5
|
import { editableInPropertyPage } from "../../../../Decorators/nodeDecorator.js";
|
|
@@ -8,7 +8,7 @@ import { FrameGraphGeometryRendererTask } from "../../../Tasks/Rendering/geometr
|
|
|
8
8
|
/**
|
|
9
9
|
* Block that render geometry of objects to a multi render target
|
|
10
10
|
*/
|
|
11
|
-
export class NodeRenderGraphGeometryRendererBlock extends
|
|
11
|
+
export class NodeRenderGraphGeometryRendererBlock extends NodeRenderGraphBaseObjectRendererBlock {
|
|
12
12
|
/**
|
|
13
13
|
* Gets the frame graph task associated with this block
|
|
14
14
|
*/
|
|
@@ -58,12 +58,7 @@ export class NodeRenderGraphGeometryRendererBlock extends NodeRenderGraphBlock {
|
|
|
58
58
|
// Linear velocity
|
|
59
59
|
this.linearVelocityFormat = 5;
|
|
60
60
|
this.linearVelocityType = 2;
|
|
61
|
-
this.
|
|
62
|
-
this.registerInput("depth", NodeRenderGraphBlockConnectionPointTypes.AutoDetect, true);
|
|
63
|
-
this.registerInput("camera", NodeRenderGraphBlockConnectionPointTypes.Camera);
|
|
64
|
-
this.registerInput("objects", NodeRenderGraphBlockConnectionPointTypes.ObjectList);
|
|
65
|
-
this._addDependenciesInput();
|
|
66
|
-
this.registerOutput("outputDepth", NodeRenderGraphBlockConnectionPointTypes.BasedOnInput);
|
|
61
|
+
this.getInputByName("target").isOptional = true;
|
|
67
62
|
this.registerOutput("geomViewDepth", NodeRenderGraphBlockConnectionPointTypes.TextureViewDepth);
|
|
68
63
|
this.registerOutput("geomNormViewDepth", NodeRenderGraphBlockConnectionPointTypes.TextureNormalizedViewDepth);
|
|
69
64
|
this.registerOutput("geomScreenDepth", NodeRenderGraphBlockConnectionPointTypes.TextureScreenDepth);
|
|
@@ -75,72 +70,56 @@ export class NodeRenderGraphGeometryRendererBlock extends NodeRenderGraphBlock {
|
|
|
75
70
|
this.registerOutput("geomReflectivity", NodeRenderGraphBlockConnectionPointTypes.TextureReflectivity);
|
|
76
71
|
this.registerOutput("geomVelocity", NodeRenderGraphBlockConnectionPointTypes.TextureVelocity);
|
|
77
72
|
this.registerOutput("geomLinearVelocity", NodeRenderGraphBlockConnectionPointTypes.TextureLinearVelocity);
|
|
78
|
-
this.depth.addExcludedConnectionPointFromAllowedTypes(NodeRenderGraphBlockConnectionPointTypes.TextureDepthStencilAttachment | NodeRenderGraphBlockConnectionPointTypes.TextureBackBufferDepthStencilAttachment);
|
|
79
|
-
this.outputDepth._typeConnectionSource = this.depth;
|
|
80
73
|
this._frameGraphTask = new FrameGraphGeometryRendererTask(this.name, frameGraph, scene, { doNotChangeAspectRatio, enableClusteredLights });
|
|
81
74
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return this._frameGraphTask.depthTest;
|
|
85
|
-
}
|
|
86
|
-
set depthTest(value) {
|
|
87
|
-
this._frameGraphTask.depthTest = value;
|
|
88
|
-
}
|
|
89
|
-
/** Indicates if depth writing must be enabled or disabled */
|
|
90
|
-
get depthWrite() {
|
|
91
|
-
return this._frameGraphTask.depthWrite;
|
|
92
|
-
}
|
|
93
|
-
set depthWrite(value) {
|
|
94
|
-
this._frameGraphTask.depthWrite = value;
|
|
95
|
-
}
|
|
96
|
-
/** Indicates if layer mask check must be forced */
|
|
97
|
-
get forceLayerMaskCheck() {
|
|
98
|
-
return this._frameGraphTask.forceLayerMaskCheck;
|
|
99
|
-
}
|
|
100
|
-
set forceLayerMaskCheck(value) {
|
|
101
|
-
this._frameGraphTask.forceLayerMaskCheck = value;
|
|
102
|
-
}
|
|
103
|
-
_recreateFrameGraphObject(doNotChangeAspectRatio, enableClusteredLights) {
|
|
104
|
-
const disabled = this._frameGraphTask.disabled;
|
|
105
|
-
const depthTest = this.depthTest;
|
|
106
|
-
const depthWrite = this.depthWrite;
|
|
107
|
-
const width = this.width;
|
|
108
|
-
const height = this.height;
|
|
109
|
-
const forceLayerMaskCheck = this.forceLayerMaskCheck;
|
|
110
|
-
const sizeInPercentage = this.sizeInPercentage;
|
|
111
|
-
const samples = this.samples;
|
|
112
|
-
const reverseCulling = this.reverseCulling;
|
|
113
|
-
const dontRenderWhenMaterialDepthWriteIsDisabled = this.dontRenderWhenMaterialDepthWriteIsDisabled;
|
|
114
|
-
this._frameGraphTask.dispose();
|
|
75
|
+
_createFrameGraphObject() {
|
|
76
|
+
this._frameGraphTask?.dispose();
|
|
115
77
|
this._frameGraphTask = new FrameGraphGeometryRendererTask(this.name, this._frameGraph, this._scene, {
|
|
116
|
-
doNotChangeAspectRatio:
|
|
117
|
-
enableClusteredLights:
|
|
78
|
+
doNotChangeAspectRatio: this._additionalConstructionParameters[0],
|
|
79
|
+
enableClusteredLights: this._additionalConstructionParameters[1],
|
|
118
80
|
});
|
|
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
|
-
this.
|
|
81
|
+
}
|
|
82
|
+
_saveState(state) {
|
|
83
|
+
super._saveState(state);
|
|
84
|
+
state.disabled = this._frameGraphTask.disabled;
|
|
85
|
+
state.isMainObjectRenderer = this.isMainObjectRenderer;
|
|
86
|
+
state.depthTest = this.depthTest;
|
|
87
|
+
state.depthWrite = this.depthWrite;
|
|
88
|
+
state.disableShadows = this.disableShadows;
|
|
89
|
+
state.renderInLinearSpace = this.renderInLinearSpace;
|
|
90
|
+
state.renderParticles = this.renderParticles;
|
|
91
|
+
state.renderSprites = this.renderSprites;
|
|
92
|
+
state.forceLayerMaskCheck = this.forceLayerMaskCheck;
|
|
93
|
+
state.enableBoundingBoxRendering = this.enableBoundingBoxRendering;
|
|
94
|
+
state.enableOutlineRendering = this.enableOutlineRendering;
|
|
95
|
+
state.width = this.width;
|
|
96
|
+
state.height = this.height;
|
|
97
|
+
state.sizeInPercentage = this.sizeInPercentage;
|
|
98
|
+
state.samples = this.samples;
|
|
99
|
+
state.reverseCulling = this.reverseCulling;
|
|
100
|
+
state.dontRenderWhenMaterialDepthWriteIsDisabled = this.dontRenderWhenMaterialDepthWriteIsDisabled;
|
|
101
|
+
state.disableDepthPrePass = this.disableDepthPrePass;
|
|
102
|
+
}
|
|
103
|
+
_restoreState(state) {
|
|
104
|
+
super._restoreState(state);
|
|
105
|
+
this._frameGraphTask.disabled = state.disabled;
|
|
106
|
+
this.isMainObjectRenderer = state.isMainObjectRenderer;
|
|
107
|
+
this.depthTest = state.depthTest;
|
|
108
|
+
this.depthWrite = state.depthWrite;
|
|
109
|
+
this.disableShadows = state.disableShadows;
|
|
110
|
+
this.renderInLinearSpace = state.renderInLinearSpace;
|
|
111
|
+
this.renderParticles = state.renderParticles;
|
|
112
|
+
this.renderSprites = state.renderSprites;
|
|
113
|
+
this.forceLayerMaskCheck = state.forceLayerMaskCheck;
|
|
114
|
+
this.enableBoundingBoxRendering = state.enableBoundingBoxRendering;
|
|
115
|
+
this.enableOutlineRendering = state.enableOutlineRendering;
|
|
116
|
+
this.width = state.width;
|
|
117
|
+
this.height = state.height;
|
|
118
|
+
this.sizeInPercentage = state.sizeInPercentage;
|
|
119
|
+
this.samples = state.samples;
|
|
120
|
+
this.reverseCulling = state.reverseCulling;
|
|
121
|
+
this.dontRenderWhenMaterialDepthWriteIsDisabled = state.dontRenderWhenMaterialDepthWriteIsDisabled;
|
|
122
|
+
this.disableDepthPrePass = state.disableDepthPrePass;
|
|
144
123
|
}
|
|
145
124
|
/** Width of the geometry texture */
|
|
146
125
|
get width() {
|
|
@@ -184,19 +163,12 @@ export class NodeRenderGraphGeometryRendererBlock extends NodeRenderGraphBlock {
|
|
|
184
163
|
set dontRenderWhenMaterialDepthWriteIsDisabled(value) {
|
|
185
164
|
this._frameGraphTask.dontRenderWhenMaterialDepthWriteIsDisabled = value;
|
|
186
165
|
}
|
|
187
|
-
/**
|
|
188
|
-
get
|
|
189
|
-
return this._frameGraphTask.
|
|
190
|
-
}
|
|
191
|
-
set resolveMSAAColors(value) {
|
|
192
|
-
this._frameGraphTask.resolveMSAAColors = value;
|
|
193
|
-
}
|
|
194
|
-
/** If true, MSAA depth texture will be resolved at the end of the render pass (default: false) */
|
|
195
|
-
get resolveMSAADepth() {
|
|
196
|
-
return this._frameGraphTask.resolveMSAADepth;
|
|
166
|
+
/** Indicates if depth pre-pass must be disabled */
|
|
167
|
+
get disableDepthPrePass() {
|
|
168
|
+
return this._frameGraphTask.disableDepthPrePass;
|
|
197
169
|
}
|
|
198
|
-
set
|
|
199
|
-
this._frameGraphTask.
|
|
170
|
+
set disableDepthPrePass(value) {
|
|
171
|
+
this._frameGraphTask.disableDepthPrePass = value;
|
|
200
172
|
}
|
|
201
173
|
/**
|
|
202
174
|
* Gets the current class name
|
|
@@ -205,95 +177,71 @@ export class NodeRenderGraphGeometryRendererBlock extends NodeRenderGraphBlock {
|
|
|
205
177
|
getClassName() {
|
|
206
178
|
return "NodeRenderGraphGeometryRendererBlock";
|
|
207
179
|
}
|
|
208
|
-
/**
|
|
209
|
-
* Gets the depth texture input component
|
|
210
|
-
*/
|
|
211
|
-
get depth() {
|
|
212
|
-
return this._inputs[0];
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Gets the camera input component
|
|
216
|
-
*/
|
|
217
|
-
get camera() {
|
|
218
|
-
return this._inputs[1];
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* Gets the objects input component
|
|
222
|
-
*/
|
|
223
|
-
get objects() {
|
|
224
|
-
return this._inputs[2];
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Gets the output depth component
|
|
228
|
-
*/
|
|
229
|
-
get outputDepth() {
|
|
230
|
-
return this._outputs[0];
|
|
231
|
-
}
|
|
232
180
|
/**
|
|
233
181
|
* Gets the geometry view depth component
|
|
234
182
|
*/
|
|
235
183
|
get geomViewDepth() {
|
|
236
|
-
return this._outputs[
|
|
184
|
+
return this._outputs[3];
|
|
237
185
|
}
|
|
238
186
|
/**
|
|
239
187
|
* Gets the geometry normalized view depth component
|
|
240
188
|
*/
|
|
241
189
|
get geomNormViewDepth() {
|
|
242
|
-
return this._outputs[
|
|
190
|
+
return this._outputs[4];
|
|
243
191
|
}
|
|
244
192
|
/**
|
|
245
193
|
* Gets the geometry screen depth component
|
|
246
194
|
*/
|
|
247
195
|
get geomScreenDepth() {
|
|
248
|
-
return this._outputs[
|
|
196
|
+
return this._outputs[5];
|
|
249
197
|
}
|
|
250
198
|
/**
|
|
251
199
|
* Gets the geometry view normal component
|
|
252
200
|
*/
|
|
253
201
|
get geomViewNormal() {
|
|
254
|
-
return this._outputs[
|
|
202
|
+
return this._outputs[6];
|
|
255
203
|
}
|
|
256
204
|
/**
|
|
257
205
|
* Gets the world geometry normal component
|
|
258
206
|
*/
|
|
259
207
|
get geomWorldNormal() {
|
|
260
|
-
return this._outputs[
|
|
208
|
+
return this._outputs[7];
|
|
261
209
|
}
|
|
262
210
|
/**
|
|
263
211
|
* Gets the geometry local position component
|
|
264
212
|
*/
|
|
265
213
|
get geomLocalPosition() {
|
|
266
|
-
return this._outputs[
|
|
214
|
+
return this._outputs[8];
|
|
267
215
|
}
|
|
268
216
|
/**
|
|
269
217
|
* Gets the geometry world position component
|
|
270
218
|
*/
|
|
271
219
|
get geomWorldPosition() {
|
|
272
|
-
return this._outputs[
|
|
220
|
+
return this._outputs[9];
|
|
273
221
|
}
|
|
274
222
|
/**
|
|
275
223
|
* Gets the geometry albedo component
|
|
276
224
|
*/
|
|
277
225
|
get geomAlbedo() {
|
|
278
|
-
return this._outputs[
|
|
226
|
+
return this._outputs[10];
|
|
279
227
|
}
|
|
280
228
|
/**
|
|
281
229
|
* Gets the geometry reflectivity component
|
|
282
230
|
*/
|
|
283
231
|
get geomReflectivity() {
|
|
284
|
-
return this._outputs[
|
|
232
|
+
return this._outputs[11];
|
|
285
233
|
}
|
|
286
234
|
/**
|
|
287
235
|
* Gets the geometry velocity component
|
|
288
236
|
*/
|
|
289
237
|
get geomVelocity() {
|
|
290
|
-
return this._outputs[
|
|
238
|
+
return this._outputs[12];
|
|
291
239
|
}
|
|
292
240
|
/**
|
|
293
241
|
* Gets the geometry linear velocity component
|
|
294
242
|
*/
|
|
295
243
|
get geomLinearVelocity() {
|
|
296
|
-
return this._outputs[
|
|
244
|
+
return this._outputs[13];
|
|
297
245
|
}
|
|
298
246
|
_buildBlock(state) {
|
|
299
247
|
super._buildBlock(state);
|
|
@@ -310,7 +258,6 @@ export class NodeRenderGraphGeometryRendererBlock extends NodeRenderGraphBlock {
|
|
|
310
258
|
this.geomVelocity.isConnected,
|
|
311
259
|
this.geomLinearVelocity.isConnected,
|
|
312
260
|
];
|
|
313
|
-
this.outputDepth.value = this._frameGraphTask.outputDepthTexture;
|
|
314
261
|
this.geomViewDepth.value = this._frameGraphTask.geometryViewDepthTexture;
|
|
315
262
|
this.geomNormViewDepth.value = this._frameGraphTask.geometryNormViewDepthTexture;
|
|
316
263
|
this.geomScreenDepth.value = this._frameGraphTask.geometryScreenDepthTexture;
|
|
@@ -322,9 +269,6 @@ export class NodeRenderGraphGeometryRendererBlock extends NodeRenderGraphBlock {
|
|
|
322
269
|
this.geomReflectivity.value = this._frameGraphTask.geometryReflectivityTexture;
|
|
323
270
|
this.geomVelocity.value = this._frameGraphTask.geometryVelocityTexture;
|
|
324
271
|
this.geomLinearVelocity.value = this._frameGraphTask.geometryLinearVelocityTexture;
|
|
325
|
-
this._frameGraphTask.depthTexture = this.depth.connectedPoint?.value;
|
|
326
|
-
this._frameGraphTask.camera = this.camera.connectedPoint?.value;
|
|
327
|
-
this._frameGraphTask.objectList = this.objects.connectedPoint?.value;
|
|
328
272
|
this._frameGraphTask.textureDescriptions = [];
|
|
329
273
|
const textureFormats = [
|
|
330
274
|
this.viewDepthFormat,
|
|
@@ -377,12 +321,12 @@ export class NodeRenderGraphGeometryRendererBlock extends NodeRenderGraphBlock {
|
|
|
377
321
|
}
|
|
378
322
|
_dumpPropertiesCode() {
|
|
379
323
|
const codes = [];
|
|
380
|
-
codes.push(`${this._codeVariableName}.
|
|
381
|
-
codes.push(`${this._codeVariableName}.
|
|
382
|
-
codes.push(`${this._codeVariableName}.forceLayerMaskCheck = ${this.forceLayerMaskCheck};`);
|
|
324
|
+
codes.push(`${this._codeVariableName}.size = { width: ${this.width}, height: ${this.height} };`);
|
|
325
|
+
codes.push(`${this._codeVariableName}.sizeInPercentage = ${this.sizeInPercentage};`);
|
|
383
326
|
codes.push(`${this._codeVariableName}.samples = ${this.samples};`);
|
|
384
327
|
codes.push(`${this._codeVariableName}.reverseCulling = ${this.reverseCulling};`);
|
|
385
328
|
codes.push(`${this._codeVariableName}.dontRenderWhenMaterialDepthWriteIsDisabled = ${this.dontRenderWhenMaterialDepthWriteIsDisabled};`);
|
|
329
|
+
codes.push(`${this._codeVariableName}.disableDepthPrePass = ${this.disableDepthPrePass};`);
|
|
386
330
|
codes.push(`${this._codeVariableName}.viewDepthFormat = ${this.viewDepthFormat};`);
|
|
387
331
|
codes.push(`${this._codeVariableName}.viewDepthType = ${this.viewDepthType};`);
|
|
388
332
|
codes.push(`${this._codeVariableName}.normalizedViewDepthFormat = ${this.normalizedViewDepthFormat};`);
|
|
@@ -405,18 +349,17 @@ export class NodeRenderGraphGeometryRendererBlock extends NodeRenderGraphBlock {
|
|
|
405
349
|
codes.push(`${this._codeVariableName}.velocityType = ${this.velocityType};`);
|
|
406
350
|
codes.push(`${this._codeVariableName}.linearVelocityFormat = ${this.linearVelocityFormat};`);
|
|
407
351
|
codes.push(`${this._codeVariableName}.linearVelocityType = ${this.linearVelocityType};`);
|
|
408
|
-
codes.push(`${this._codeVariableName}.resolveMSAAColors = ${this.resolveMSAAColors};`);
|
|
409
|
-
codes.push(`${this._codeVariableName}.resolveMSAADepth = ${this.resolveMSAADepth};`);
|
|
410
352
|
return super._dumpPropertiesCode() + codes.join("\n");
|
|
411
353
|
}
|
|
412
354
|
serialize() {
|
|
413
355
|
const serializationObject = super.serialize();
|
|
414
|
-
serializationObject.
|
|
415
|
-
serializationObject.
|
|
416
|
-
serializationObject.
|
|
356
|
+
serializationObject.sizeInPercentage = this.sizeInPercentage;
|
|
357
|
+
serializationObject.width = this.width;
|
|
358
|
+
serializationObject.height = this.height;
|
|
417
359
|
serializationObject.samples = this.samples;
|
|
418
360
|
serializationObject.reverseCulling = this.reverseCulling;
|
|
419
361
|
serializationObject.dontRenderWhenMaterialDepthWriteIsDisabled = this.dontRenderWhenMaterialDepthWriteIsDisabled;
|
|
362
|
+
serializationObject.disableDepthPrePass = this.disableDepthPrePass;
|
|
420
363
|
serializationObject.viewDepthFormat = this.viewDepthFormat;
|
|
421
364
|
serializationObject.viewDepthType = this.viewDepthType;
|
|
422
365
|
serializationObject.normalizedViewDepthFormat = this.normalizedViewDepthFormat;
|
|
@@ -439,18 +382,17 @@ export class NodeRenderGraphGeometryRendererBlock extends NodeRenderGraphBlock {
|
|
|
439
382
|
serializationObject.velocityType = this.velocityType;
|
|
440
383
|
serializationObject.linearVelocityFormat = this.linearVelocityFormat;
|
|
441
384
|
serializationObject.linearVelocityType = this.linearVelocityType;
|
|
442
|
-
serializationObject.resolveMSAAColors = this.resolveMSAAColors;
|
|
443
|
-
serializationObject.resolveMSAADepth = this.resolveMSAADepth;
|
|
444
385
|
return serializationObject;
|
|
445
386
|
}
|
|
446
387
|
_deserialize(serializationObject) {
|
|
447
388
|
super._deserialize(serializationObject);
|
|
448
|
-
this.
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
389
|
+
this.sizeInPercentage = !!serializationObject.sizeInPercentage;
|
|
390
|
+
this.width = serializationObject.width ?? 100;
|
|
391
|
+
this.height = serializationObject.height ?? 100;
|
|
451
392
|
this.samples = serializationObject.samples;
|
|
452
393
|
this.reverseCulling = serializationObject.reverseCulling;
|
|
453
394
|
this.dontRenderWhenMaterialDepthWriteIsDisabled = serializationObject.dontRenderWhenMaterialDepthWriteIsDisabled;
|
|
395
|
+
this.disableDepthPrePass = serializationObject.disableDepthPrePass ?? true;
|
|
454
396
|
this.viewDepthFormat = serializationObject.viewDepthFormat;
|
|
455
397
|
this.viewDepthType = serializationObject.viewDepthType;
|
|
456
398
|
this.normalizedViewDepthFormat = serializationObject.normalizedViewDepthFormat ?? 6;
|
|
@@ -473,114 +415,94 @@ export class NodeRenderGraphGeometryRendererBlock extends NodeRenderGraphBlock {
|
|
|
473
415
|
this.velocityType = serializationObject.velocityType;
|
|
474
416
|
this.linearVelocityFormat = serializationObject.linearVelocityFormat;
|
|
475
417
|
this.linearVelocityType = serializationObject.linearVelocityType;
|
|
476
|
-
this.resolveMSAAColors = serializationObject.resolveMSAAColors ?? true;
|
|
477
|
-
this.resolveMSAADepth = serializationObject.resolveMSAADepth ?? false;
|
|
478
418
|
}
|
|
479
419
|
}
|
|
480
420
|
__decorate([
|
|
481
|
-
editableInPropertyPage("
|
|
482
|
-
], NodeRenderGraphGeometryRendererBlock.prototype, "depthTest", null);
|
|
483
|
-
__decorate([
|
|
484
|
-
editableInPropertyPage("Depth write", 0 /* PropertyTypeForEdition.Boolean */, "PROPERTIES")
|
|
485
|
-
], NodeRenderGraphGeometryRendererBlock.prototype, "depthWrite", null);
|
|
486
|
-
__decorate([
|
|
487
|
-
editableInPropertyPage("Force layer mask check", 0 /* PropertyTypeForEdition.Boolean */, "PROPERTIES")
|
|
488
|
-
], NodeRenderGraphGeometryRendererBlock.prototype, "forceLayerMaskCheck", null);
|
|
489
|
-
__decorate([
|
|
490
|
-
editableInPropertyPage("Do not change aspect ratio", 0 /* PropertyTypeForEdition.Boolean */, "PROPERTIES")
|
|
491
|
-
], NodeRenderGraphGeometryRendererBlock.prototype, "doNotChangeAspectRatio", null);
|
|
492
|
-
__decorate([
|
|
493
|
-
editableInPropertyPage("Enable clustered lights", 0 /* PropertyTypeForEdition.Boolean */, "PROPERTIES")
|
|
494
|
-
], NodeRenderGraphGeometryRendererBlock.prototype, "enableClusteredLights", null);
|
|
495
|
-
__decorate([
|
|
496
|
-
editableInPropertyPage("Texture width", 2 /* PropertyTypeForEdition.Int */, "PROPERTIES")
|
|
421
|
+
editableInPropertyPage("Texture width", 2 /* PropertyTypeForEdition.Int */, "RENDERING - GEOMETRY")
|
|
497
422
|
], NodeRenderGraphGeometryRendererBlock.prototype, "width", null);
|
|
498
423
|
__decorate([
|
|
499
|
-
editableInPropertyPage("Texture height", 2 /* PropertyTypeForEdition.Int */, "
|
|
424
|
+
editableInPropertyPage("Texture height", 2 /* PropertyTypeForEdition.Int */, "RENDERING - GEOMETRY")
|
|
500
425
|
], NodeRenderGraphGeometryRendererBlock.prototype, "height", null);
|
|
501
426
|
__decorate([
|
|
502
|
-
editableInPropertyPage("Size is in percentage", 0 /* PropertyTypeForEdition.Boolean */, "
|
|
427
|
+
editableInPropertyPage("Size is in percentage", 0 /* PropertyTypeForEdition.Boolean */, "RENDERING - GEOMETRY")
|
|
503
428
|
], NodeRenderGraphGeometryRendererBlock.prototype, "sizeInPercentage", null);
|
|
504
429
|
__decorate([
|
|
505
|
-
editableInPropertyPage("Samples", 2 /* PropertyTypeForEdition.Int */, "
|
|
430
|
+
editableInPropertyPage("Samples", 2 /* PropertyTypeForEdition.Int */, "RENDERING - GEOMETRY", { min: 1, max: 8 })
|
|
506
431
|
], NodeRenderGraphGeometryRendererBlock.prototype, "samples", null);
|
|
507
432
|
__decorate([
|
|
508
|
-
editableInPropertyPage("Reverse culling", 0 /* PropertyTypeForEdition.Boolean */, "
|
|
433
|
+
editableInPropertyPage("Reverse culling", 0 /* PropertyTypeForEdition.Boolean */, "RENDERING - GEOMETRY")
|
|
509
434
|
], NodeRenderGraphGeometryRendererBlock.prototype, "reverseCulling", null);
|
|
510
435
|
__decorate([
|
|
511
|
-
editableInPropertyPage("Don't render if material depth write is disabled", 0 /* PropertyTypeForEdition.Boolean */, "
|
|
436
|
+
editableInPropertyPage("Don't render if material depth write is disabled", 0 /* PropertyTypeForEdition.Boolean */, "RENDERING - GEOMETRY")
|
|
512
437
|
], NodeRenderGraphGeometryRendererBlock.prototype, "dontRenderWhenMaterialDepthWriteIsDisabled", null);
|
|
513
438
|
__decorate([
|
|
514
|
-
editableInPropertyPage("
|
|
515
|
-
], NodeRenderGraphGeometryRendererBlock.prototype, "
|
|
516
|
-
__decorate([
|
|
517
|
-
editableInPropertyPage("Resolve MSAA depth", 0 /* PropertyTypeForEdition.Boolean */, "PROPERTIES")
|
|
518
|
-
], NodeRenderGraphGeometryRendererBlock.prototype, "resolveMSAADepth", null);
|
|
439
|
+
editableInPropertyPage("Disable depth pre-pass", 0 /* PropertyTypeForEdition.Boolean */, "RENDERING - GEOMETRY")
|
|
440
|
+
], NodeRenderGraphGeometryRendererBlock.prototype, "disableDepthPrePass", null);
|
|
519
441
|
__decorate([
|
|
520
|
-
editableInPropertyPage("
|
|
442
|
+
editableInPropertyPage("Format", 9 /* PropertyTypeForEdition.TextureFormat */, "OUTPUT - VIEW DEPTH")
|
|
521
443
|
], NodeRenderGraphGeometryRendererBlock.prototype, "viewDepthFormat", void 0);
|
|
522
444
|
__decorate([
|
|
523
|
-
editableInPropertyPage("
|
|
445
|
+
editableInPropertyPage("Type", 10 /* PropertyTypeForEdition.TextureType */, "OUTPUT - VIEW DEPTH")
|
|
524
446
|
], NodeRenderGraphGeometryRendererBlock.prototype, "viewDepthType", void 0);
|
|
525
447
|
__decorate([
|
|
526
|
-
editableInPropertyPage("
|
|
448
|
+
editableInPropertyPage("Format", 9 /* PropertyTypeForEdition.TextureFormat */, "OUTPUT - NORMALIZED VIEW DEPTH")
|
|
527
449
|
], NodeRenderGraphGeometryRendererBlock.prototype, "normalizedViewDepthFormat", void 0);
|
|
528
450
|
__decorate([
|
|
529
|
-
editableInPropertyPage("
|
|
451
|
+
editableInPropertyPage("Type", 10 /* PropertyTypeForEdition.TextureType */, "OUTPUT - NORMALIZED VIEW DEPTH")
|
|
530
452
|
], NodeRenderGraphGeometryRendererBlock.prototype, "normalizedViewDepthType", void 0);
|
|
531
453
|
__decorate([
|
|
532
|
-
editableInPropertyPage("
|
|
454
|
+
editableInPropertyPage("Format", 9 /* PropertyTypeForEdition.TextureFormat */, "OUTPUT - SCREEN DEPTH")
|
|
533
455
|
], NodeRenderGraphGeometryRendererBlock.prototype, "screenDepthFormat", void 0);
|
|
534
456
|
__decorate([
|
|
535
|
-
editableInPropertyPage("
|
|
457
|
+
editableInPropertyPage("Type", 10 /* PropertyTypeForEdition.TextureType */, "OUTPUT - SCREEN DEPTH")
|
|
536
458
|
], NodeRenderGraphGeometryRendererBlock.prototype, "screenDepthType", void 0);
|
|
537
459
|
__decorate([
|
|
538
|
-
editableInPropertyPage("
|
|
460
|
+
editableInPropertyPage("Format", 9 /* PropertyTypeForEdition.TextureFormat */, "OUTPUT - VIEW NORMAL")
|
|
539
461
|
], NodeRenderGraphGeometryRendererBlock.prototype, "viewNormalFormat", void 0);
|
|
540
462
|
__decorate([
|
|
541
|
-
editableInPropertyPage("
|
|
463
|
+
editableInPropertyPage("Type", 10 /* PropertyTypeForEdition.TextureType */, "OUTPUT - VIEW NORMAL")
|
|
542
464
|
], NodeRenderGraphGeometryRendererBlock.prototype, "viewNormalType", void 0);
|
|
543
465
|
__decorate([
|
|
544
|
-
editableInPropertyPage("
|
|
466
|
+
editableInPropertyPage("Format", 9 /* PropertyTypeForEdition.TextureFormat */, "OUTPUT - WORLD NORMAL")
|
|
545
467
|
], NodeRenderGraphGeometryRendererBlock.prototype, "worldNormalFormat", void 0);
|
|
546
468
|
__decorate([
|
|
547
|
-
editableInPropertyPage("
|
|
469
|
+
editableInPropertyPage("Type", 10 /* PropertyTypeForEdition.TextureType */, "OUTPUT - WORLD NORMAL")
|
|
548
470
|
], NodeRenderGraphGeometryRendererBlock.prototype, "worldNormalType", void 0);
|
|
549
471
|
__decorate([
|
|
550
|
-
editableInPropertyPage("
|
|
472
|
+
editableInPropertyPage("Format", 9 /* PropertyTypeForEdition.TextureFormat */, "OUTPUT - LOCAL POSITION")
|
|
551
473
|
], NodeRenderGraphGeometryRendererBlock.prototype, "localPositionFormat", void 0);
|
|
552
474
|
__decorate([
|
|
553
|
-
editableInPropertyPage("
|
|
475
|
+
editableInPropertyPage("Type", 10 /* PropertyTypeForEdition.TextureType */, "OUTPUT - LOCAL POSITION")
|
|
554
476
|
], NodeRenderGraphGeometryRendererBlock.prototype, "localPositionType", void 0);
|
|
555
477
|
__decorate([
|
|
556
|
-
editableInPropertyPage("
|
|
478
|
+
editableInPropertyPage("Format", 9 /* PropertyTypeForEdition.TextureFormat */, "OUTPUT - WORLD POSITION")
|
|
557
479
|
], NodeRenderGraphGeometryRendererBlock.prototype, "worldPositionFormat", void 0);
|
|
558
480
|
__decorate([
|
|
559
|
-
editableInPropertyPage("
|
|
481
|
+
editableInPropertyPage("Type", 10 /* PropertyTypeForEdition.TextureType */, "OUTPUT - WORLD POSITION")
|
|
560
482
|
], NodeRenderGraphGeometryRendererBlock.prototype, "worldPositionType", void 0);
|
|
561
483
|
__decorate([
|
|
562
|
-
editableInPropertyPage("
|
|
484
|
+
editableInPropertyPage("Format", 9 /* PropertyTypeForEdition.TextureFormat */, "OUTPUT - ALBEDO")
|
|
563
485
|
], NodeRenderGraphGeometryRendererBlock.prototype, "albedoFormat", void 0);
|
|
564
486
|
__decorate([
|
|
565
|
-
editableInPropertyPage("
|
|
487
|
+
editableInPropertyPage("Type", 10 /* PropertyTypeForEdition.TextureType */, "OUTPUT - ALBEDO")
|
|
566
488
|
], NodeRenderGraphGeometryRendererBlock.prototype, "albedoType", void 0);
|
|
567
489
|
__decorate([
|
|
568
|
-
editableInPropertyPage("
|
|
490
|
+
editableInPropertyPage("Format", 9 /* PropertyTypeForEdition.TextureFormat */, "OUTPUT - REFLECTIVITY")
|
|
569
491
|
], NodeRenderGraphGeometryRendererBlock.prototype, "reflectivityFormat", void 0);
|
|
570
492
|
__decorate([
|
|
571
|
-
editableInPropertyPage("
|
|
493
|
+
editableInPropertyPage("Type", 10 /* PropertyTypeForEdition.TextureType */, "OUTPUT - REFLECTIVITY")
|
|
572
494
|
], NodeRenderGraphGeometryRendererBlock.prototype, "reflectivityType", void 0);
|
|
573
495
|
__decorate([
|
|
574
|
-
editableInPropertyPage("
|
|
496
|
+
editableInPropertyPage("Format", 9 /* PropertyTypeForEdition.TextureFormat */, "OUTPUT - VELOCITY")
|
|
575
497
|
], NodeRenderGraphGeometryRendererBlock.prototype, "velocityFormat", void 0);
|
|
576
498
|
__decorate([
|
|
577
|
-
editableInPropertyPage("
|
|
499
|
+
editableInPropertyPage("Type", 10 /* PropertyTypeForEdition.TextureType */, "OUTPUT - VELOCITY")
|
|
578
500
|
], NodeRenderGraphGeometryRendererBlock.prototype, "velocityType", void 0);
|
|
579
501
|
__decorate([
|
|
580
|
-
editableInPropertyPage("
|
|
502
|
+
editableInPropertyPage("Format", 9 /* PropertyTypeForEdition.TextureFormat */, "OUTPUT - LINEAR VELOCITY")
|
|
581
503
|
], NodeRenderGraphGeometryRendererBlock.prototype, "linearVelocityFormat", void 0);
|
|
582
504
|
__decorate([
|
|
583
|
-
editableInPropertyPage("
|
|
505
|
+
editableInPropertyPage("Type", 10 /* PropertyTypeForEdition.TextureType */, "OUTPUT - LINEAR VELOCITY")
|
|
584
506
|
], NodeRenderGraphGeometryRendererBlock.prototype, "linearVelocityType", void 0);
|
|
585
507
|
RegisterClass("BABYLON.NodeRenderGraphGeometryRendererBlock", NodeRenderGraphGeometryRendererBlock);
|
|
586
508
|
//# sourceMappingURL=geometryRendererBlock.js.map
|