@onerjs/core 8.27.2 → 8.27.3
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/Decorators/nodeDecorator.d.ts +7 -5
- package/Decorators/nodeDecorator.js +7 -5
- package/Decorators/nodeDecorator.js.map +1 -1
- package/FrameGraph/Node/Blocks/Layers/glowLayerBlock.js +1 -1
- package/FrameGraph/Node/Blocks/Layers/highlightLayerBlock.js +1 -1
- package/FrameGraph/Node/Blocks/PostProcesses/basePostProcessBlock.js +1 -1
- package/FrameGraph/Node/Blocks/PostProcesses/circleOfConfusionPostProcessBlock.js +1 -1
- package/FrameGraph/Node/Blocks/PostProcesses/depthOfFieldPostProcessBlock.js +2 -2
- package/FrameGraph/Node/Blocks/PostProcesses/imageProcessingPostProcessBlock.js +3 -3
- package/FrameGraph/Node/Blocks/PostProcesses/ssrPostProcessBlock.js +1 -1
- package/FrameGraph/Node/Blocks/Rendering/baseShadowGeneratorBlock.js +3 -3
- package/FrameGraph/Node/Blocks/Rendering/csmShadowGeneratorBlock.js +1 -1
- package/FrameGraph/Node/Blocks/Rendering/geometryRendererBlock.js +22 -22
- package/FrameGraph/Node/Blocks/Textures/clearBlock.js +1 -1
- package/FrameGraph/Node/Blocks/index.d.ts +1 -0
- package/FrameGraph/Node/Blocks/index.js +1 -0
- package/FrameGraph/Node/Blocks/index.js.map +1 -1
- package/FrameGraph/frameGraphTextureManager.d.ts +4 -0
- package/FrameGraph/frameGraphTextureManager.js +7 -1
- package/FrameGraph/frameGraphTextureManager.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js +1 -1
- package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js +4 -4
- package/Materials/Node/Blocks/conditionalBlock.js +1 -1
- package/Materials/Node/Blocks/curveBlock.js +1 -1
- package/Materials/Node/Blocks/meshAttributeExistsBlock.js +1 -1
- package/Materials/Node/Blocks/trigonometryBlock.js +1 -1
- package/Materials/Node/Blocks/waveBlock.js +1 -1
- package/Materials/PBR/openPbrMaterial.d.ts +2 -0
- package/Materials/PBR/openPbrMaterial.js +2 -0
- package/Materials/PBR/openPbrMaterial.js.map +1 -1
- package/Materials/PBR/pbrBaseMaterial.d.ts +2 -0
- package/Materials/PBR/pbrBaseMaterial.js +2 -0
- package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
- package/Materials/materialHelper.functions.js +1 -0
- package/Materials/materialHelper.functions.js.map +1 -1
- package/Materials/standardMaterial.d.ts +2 -0
- package/Materials/standardMaterial.js +2 -0
- package/Materials/standardMaterial.js.map +1 -1
- package/Meshes/Node/Blocks/Set/aggregatorBlock.js +1 -1
- package/Meshes/Node/Blocks/Set/setUVsBlock.js +1 -1
- package/Meshes/Node/Blocks/booleanGeometryBlock.js +1 -1
- package/Meshes/Node/Blocks/conditionBlock.js +1 -1
- package/Meshes/Node/Blocks/geometryCurveBlock.js +1 -1
- package/Meshes/Node/Blocks/geometryEaseBlock.js +1 -1
- package/Meshes/Node/Blocks/geometryTrigonometryBlock.js +1 -1
- package/Meshes/Node/Blocks/mappingBlock.js +1 -1
- package/Meshes/Node/Blocks/mathBlock.js +1 -1
- package/Meshes/Node/Blocks/randomBlock.js +1 -1
- package/Meshes/abstractMesh.d.ts +4 -0
- package/Meshes/abstractMesh.js +7 -0
- package/Meshes/abstractMesh.js.map +1 -1
- package/Particles/Node/Blocks/Conditions/particleConditionBlock.js +1 -1
- package/Particles/Node/Blocks/particleLocalVariableBlock.js +1 -1
- package/Particles/Node/Blocks/particleMathBlock.js +1 -1
- package/Particles/Node/Blocks/particleRandomBlock.js +1 -1
- package/Particles/Node/Blocks/particleTrigonometryBlock.js +1 -1
- package/Particles/Node/Blocks/systemBlock.js +1 -1
- package/Particles/gpuParticleSystem.js +1 -0
- package/Particles/gpuParticleSystem.js.map +1 -1
- package/Shaders/ShadersInclude/lightFragment.js +1 -1
- package/Shaders/ShadersInclude/lightFragment.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/lightsFragmentFunctions.js +1 -1
- package/ShadersWGSL/ShadersInclude/lightsFragmentFunctions.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/pbrDirectLightingFunctions.js +1 -1
- package/ShadersWGSL/ShadersInclude/pbrDirectLightingFunctions.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/pbrFragmentExtraDeclaration.js +1 -1
- package/ShadersWGSL/ShadersInclude/pbrFragmentExtraDeclaration.js.map +1 -1
- package/ShadersWGSL/default.fragment.js +1 -1
- package/ShadersWGSL/default.fragment.js.map +1 -1
- package/ShadersWGSL/default.vertex.js +2 -2
- package/ShadersWGSL/default.vertex.js.map +1 -1
- package/ShadersWGSL/pbr.vertex.js +2 -2
- package/ShadersWGSL/pbr.vertex.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,16 +12,18 @@ export declare enum PropertyTypeForEdition {
|
|
|
12
12
|
Int = 2,
|
|
13
13
|
/** property is a Vector2 */
|
|
14
14
|
Vector2 = 3,
|
|
15
|
+
/** property is a Vector3 */
|
|
16
|
+
Vector3 = 4,
|
|
15
17
|
/** property is a list of values */
|
|
16
|
-
List =
|
|
18
|
+
List = 5,
|
|
17
19
|
/** property is a Color4 */
|
|
18
|
-
Color4 =
|
|
20
|
+
Color4 = 6,
|
|
19
21
|
/** property (int) should be edited as a combo box with a list of sampling modes */
|
|
20
|
-
SamplingMode =
|
|
22
|
+
SamplingMode = 7,
|
|
21
23
|
/** property (int) should be edited as a combo box with a list of texture formats */
|
|
22
|
-
TextureFormat =
|
|
24
|
+
TextureFormat = 8,
|
|
23
25
|
/** property (int) should be edited as a combo box with a list of texture types */
|
|
24
|
-
TextureType =
|
|
26
|
+
TextureType = 9
|
|
25
27
|
}
|
|
26
28
|
/**
|
|
27
29
|
* Interface that defines an option in a variable of type list
|
|
@@ -11,16 +11,18 @@ export var PropertyTypeForEdition;
|
|
|
11
11
|
PropertyTypeForEdition[PropertyTypeForEdition["Int"] = 2] = "Int";
|
|
12
12
|
/** property is a Vector2 */
|
|
13
13
|
PropertyTypeForEdition[PropertyTypeForEdition["Vector2"] = 3] = "Vector2";
|
|
14
|
+
/** property is a Vector3 */
|
|
15
|
+
PropertyTypeForEdition[PropertyTypeForEdition["Vector3"] = 4] = "Vector3";
|
|
14
16
|
/** property is a list of values */
|
|
15
|
-
PropertyTypeForEdition[PropertyTypeForEdition["List"] =
|
|
17
|
+
PropertyTypeForEdition[PropertyTypeForEdition["List"] = 5] = "List";
|
|
16
18
|
/** property is a Color4 */
|
|
17
|
-
PropertyTypeForEdition[PropertyTypeForEdition["Color4"] =
|
|
19
|
+
PropertyTypeForEdition[PropertyTypeForEdition["Color4"] = 6] = "Color4";
|
|
18
20
|
/** property (int) should be edited as a combo box with a list of sampling modes */
|
|
19
|
-
PropertyTypeForEdition[PropertyTypeForEdition["SamplingMode"] =
|
|
21
|
+
PropertyTypeForEdition[PropertyTypeForEdition["SamplingMode"] = 7] = "SamplingMode";
|
|
20
22
|
/** property (int) should be edited as a combo box with a list of texture formats */
|
|
21
|
-
PropertyTypeForEdition[PropertyTypeForEdition["TextureFormat"] =
|
|
23
|
+
PropertyTypeForEdition[PropertyTypeForEdition["TextureFormat"] = 8] = "TextureFormat";
|
|
22
24
|
/** property (int) should be edited as a combo box with a list of texture types */
|
|
23
|
-
PropertyTypeForEdition[PropertyTypeForEdition["TextureType"] =
|
|
25
|
+
PropertyTypeForEdition[PropertyTypeForEdition["TextureType"] = 9] = "TextureType";
|
|
24
26
|
})(PropertyTypeForEdition || (PropertyTypeForEdition = {}));
|
|
25
27
|
/**
|
|
26
28
|
* Decorator that flags a property in a node block as being editable
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodeDecorator.js","sourceRoot":"","sources":["../../../../dev/core/src/Decorators/nodeDecorator.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,CAAN,IAAkB,
|
|
1
|
+
{"version":3,"file":"nodeDecorator.js","sourceRoot":"","sources":["../../../../dev/core/src/Decorators/nodeDecorator.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,CAAN,IAAkB,sBAqBjB;AArBD,WAAkB,sBAAsB;IACpC,4BAA4B;IAC5B,yEAAO,CAAA;IACP,0BAA0B;IAC1B,qEAAK,CAAA;IACL,wBAAwB;IACxB,iEAAG,CAAA;IACH,4BAA4B;IAC5B,yEAAO,CAAA;IACP,4BAA4B;IAC5B,yEAAO,CAAA;IACP,mCAAmC;IACnC,mEAAI,CAAA;IACJ,2BAA2B;IAC3B,uEAAM,CAAA;IACN,mFAAmF;IACnF,mFAAY,CAAA;IACZ,oFAAoF;IACpF,qFAAa,CAAA;IACb,kFAAkF;IAClF,iFAAW,CAAA;AACf,CAAC,EArBiB,sBAAsB,KAAtB,sBAAsB,QAqBvC;AA2DD;;;;;;;GAOG;AACH,gEAAgE;AAChE,MAAM,UAAU,sBAAsB,CAClC,WAAmB,EACnB,qDAAqE,EACrE,YAAoB,YAAY,EAChC,OAAiC;IAEjC,OAAO,CAAC,MAAW,EAAE,WAAmB,EAAE,EAAE;QACxC,IAAI,SAAS,GAAqC,MAAM,CAAC,UAAU,CAAC;QACpE,IAAI,CAAC,SAAS,EAAE,CAAC;YACb,SAAS,GAAG,EAAE,CAAC;YACf,MAAM,CAAC,UAAU,GAAG,SAAS,CAAC;QAClC,CAAC;QACD,SAAS,CAAC,IAAI,CAAC;YACX,YAAY,EAAE,WAAW;YACzB,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,YAAY;YAClB,SAAS,EAAE,SAAS;YACpB,OAAO,EAAE,OAAO,IAAI,EAAE;YACtB,SAAS,EAAE,MAAM,CAAC,YAAY,EAAE;SACnC,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC","sourcesContent":["import type { Nullable } from \"../types\";\r\nimport type { Scene } from \"../scene\";\r\n\r\n/**\r\n * Enum defining the type of properties that can be edited in the property pages in the node editor\r\n */\r\nexport const enum PropertyTypeForEdition {\r\n /** property is a boolean */\r\n Boolean,\r\n /** property is a float */\r\n Float,\r\n /** property is a int */\r\n Int,\r\n /** property is a Vector2 */\r\n Vector2,\r\n /** property is a Vector3 */\r\n Vector3,\r\n /** property is a list of values */\r\n List,\r\n /** property is a Color4 */\r\n Color4,\r\n /** property (int) should be edited as a combo box with a list of sampling modes */\r\n SamplingMode,\r\n /** property (int) should be edited as a combo box with a list of texture formats */\r\n TextureFormat,\r\n /** property (int) should be edited as a combo box with a list of texture types */\r\n TextureType,\r\n}\r\n\r\n/**\r\n * Interface that defines an option in a variable of type list\r\n */\r\nexport interface IEditablePropertyListOption {\r\n /** label of the option */\r\n label: string;\r\n /** value of the option */\r\n value: number;\r\n}\r\n\r\n/**\r\n * Interface that defines the options available for an editable property\r\n */\r\nexport interface IEditablePropertyOption {\r\n /**\r\n * Define if the property is displayed inside the source block or in a separate property tab\r\n */\r\n embedded?: boolean;\r\n /** min value */\r\n min?: number;\r\n /** max value */\r\n max?: number;\r\n /** notifiers: indicates which actions to take when the property is changed */\r\n notifiers?: {\r\n /** the entity should be rebuilt */\r\n rebuild?: boolean;\r\n /** the preview should be updated */\r\n update?: boolean;\r\n /** the onPreviewCommandActivated observer of the preview manager should be triggered */\r\n activatePreviewCommand?: boolean;\r\n /** a callback to trigger */\r\n callback?: (scene: Nullable<Scene>, block: any) => boolean | undefined | void;\r\n /** a callback to validate the property. Returns true if the property is ok, else false. If false, the rebuild/update/callback events won't be called */\r\n onValidation?: (block: any, propertyName: string) => boolean;\r\n };\r\n /** list of the options for a variable of type list */\r\n options?: IEditablePropertyListOption[];\r\n}\r\n\r\n/**\r\n * Interface that describes an editable property\r\n */\r\nexport interface IPropertyDescriptionForEdition {\r\n /** name of the property */\r\n propertyName: string;\r\n /** display name of the property */\r\n displayName: string;\r\n /** type of the property */\r\n type: PropertyTypeForEdition;\r\n /** group of the property - all properties with the same group value will be displayed in a specific section */\r\n groupName: string;\r\n /** options for the property */\r\n options: IEditablePropertyOption;\r\n /** name of the class that contains the property */\r\n className: string;\r\n}\r\n\r\n/**\r\n * Decorator that flags a property in a node block as being editable\r\n * @param displayName the display name of the property\r\n * @param propertyType the type of the property\r\n * @param groupName the group name of the property\r\n * @param options the options of the property\r\n * @returns the decorator\r\n */\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nexport function editableInPropertyPage(\r\n displayName: string,\r\n propertyType: PropertyTypeForEdition = PropertyTypeForEdition.Boolean,\r\n groupName: string = \"PROPERTIES\",\r\n options?: IEditablePropertyOption\r\n) {\r\n return (target: any, propertyKey: string) => {\r\n let propStore: IPropertyDescriptionForEdition[] = target._propStore;\r\n if (!propStore) {\r\n propStore = [];\r\n target._propStore = propStore;\r\n }\r\n propStore.push({\r\n propertyName: propertyKey,\r\n displayName: displayName,\r\n type: propertyType,\r\n groupName: groupName,\r\n options: options ?? {},\r\n className: target.getClassName(),\r\n });\r\n };\r\n}\r\n"]}
|
|
@@ -171,7 +171,7 @@ __decorate([
|
|
|
171
171
|
editableInPropertyPage("Layer texture fixed size", 1 /* PropertyTypeForEdition.Float */, "PROPERTIES")
|
|
172
172
|
], NodeRenderGraphGlowLayerBlock.prototype, "layerTextureFixedSize", null);
|
|
173
173
|
__decorate([
|
|
174
|
-
editableInPropertyPage("Layer texture type",
|
|
174
|
+
editableInPropertyPage("Layer texture type", 9 /* PropertyTypeForEdition.TextureType */, "PROPERTIES")
|
|
175
175
|
], NodeRenderGraphGlowLayerBlock.prototype, "layerTextureType", null);
|
|
176
176
|
__decorate([
|
|
177
177
|
editableInPropertyPage("Blur kernel size", 2 /* PropertyTypeForEdition.Int */, "PROPERTIES", { min: 1, max: 256 })
|
|
@@ -185,7 +185,7 @@ __decorate([
|
|
|
185
185
|
editableInPropertyPage("Is stroke", 0 /* PropertyTypeForEdition.Boolean */, "PROPERTIES")
|
|
186
186
|
], NodeRenderGraphHighlightLayerBlock.prototype, "isStroke", null);
|
|
187
187
|
__decorate([
|
|
188
|
-
editableInPropertyPage("Layer texture type",
|
|
188
|
+
editableInPropertyPage("Layer texture type", 9 /* PropertyTypeForEdition.TextureType */, "PROPERTIES")
|
|
189
189
|
], NodeRenderGraphHighlightLayerBlock.prototype, "layerTextureType", null);
|
|
190
190
|
__decorate([
|
|
191
191
|
editableInPropertyPage("Blur horizontal size", 1 /* PropertyTypeForEdition.Float */, "PROPERTIES", { min: 0, max: 4 })
|
|
@@ -80,6 +80,6 @@ export class NodeRenderGraphBasePostProcessBlock extends NodeRenderGraphBlock {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
__decorate([
|
|
83
|
-
editableInPropertyPage("Source sampling mode",
|
|
83
|
+
editableInPropertyPage("Source sampling mode", 7 /* PropertyTypeForEdition.SamplingMode */, "PROPERTIES")
|
|
84
84
|
], NodeRenderGraphBasePostProcessBlock.prototype, "sourceSamplingMode", null);
|
|
85
85
|
//# sourceMappingURL=basePostProcessBlock.js.map
|
|
@@ -115,7 +115,7 @@ export class NodeRenderGraphCircleOfConfusionPostProcessBlock extends NodeRender
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
__decorate([
|
|
118
|
-
editableInPropertyPage("Depth sampling mode",
|
|
118
|
+
editableInPropertyPage("Depth sampling mode", 7 /* PropertyTypeForEdition.SamplingMode */, "PROPERTIES")
|
|
119
119
|
], NodeRenderGraphCircleOfConfusionPostProcessBlock.prototype, "depthSamplingMode", null);
|
|
120
120
|
__decorate([
|
|
121
121
|
editableInPropertyPage("Lens size", 1 /* PropertyTypeForEdition.Float */, "PROPERTIES")
|
|
@@ -149,7 +149,7 @@ export class NodeRenderGraphDepthOfFieldPostProcessBlock extends NodeRenderGraph
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
__decorate([
|
|
152
|
-
editableInPropertyPage("Blur level",
|
|
152
|
+
editableInPropertyPage("Blur level", 5 /* PropertyTypeForEdition.List */, "PROPERTIES", {
|
|
153
153
|
options: [
|
|
154
154
|
{ label: "Low", value: 0 /* ThinDepthOfFieldEffectBlurLevel.Low */ },
|
|
155
155
|
{ label: "Medium", value: 1 /* ThinDepthOfFieldEffectBlurLevel.Medium */ },
|
|
@@ -161,7 +161,7 @@ __decorate([
|
|
|
161
161
|
editableInPropertyPage("HDR", 0 /* PropertyTypeForEdition.Boolean */, "PROPERTIES")
|
|
162
162
|
], NodeRenderGraphDepthOfFieldPostProcessBlock.prototype, "hdr", null);
|
|
163
163
|
__decorate([
|
|
164
|
-
editableInPropertyPage("Depth sampling mode",
|
|
164
|
+
editableInPropertyPage("Depth sampling mode", 7 /* PropertyTypeForEdition.SamplingMode */, "PROPERTIES")
|
|
165
165
|
], NodeRenderGraphDepthOfFieldPostProcessBlock.prototype, "depthSamplingMode", null);
|
|
166
166
|
__decorate([
|
|
167
167
|
editableInPropertyPage("Focal length", 1 /* PropertyTypeForEdition.Float */, "PROPERTIES")
|
|
@@ -199,7 +199,7 @@ __decorate([
|
|
|
199
199
|
editableInPropertyPage("Enabled", 0 /* PropertyTypeForEdition.Boolean */, "TONE MAPPING")
|
|
200
200
|
], NodeRenderGraphImageProcessingPostProcessBlock.prototype, "toneMappingEnabled", null);
|
|
201
201
|
__decorate([
|
|
202
|
-
editableInPropertyPage("Type",
|
|
202
|
+
editableInPropertyPage("Type", 5 /* PropertyTypeForEdition.List */, "TONE MAPPING", {
|
|
203
203
|
options: [
|
|
204
204
|
{ value: ImageProcessingConfiguration.TONEMAPPING_STANDARD, label: "Standard" },
|
|
205
205
|
{ value: ImageProcessingConfiguration.TONEMAPPING_ACES, label: "ACES" },
|
|
@@ -226,10 +226,10 @@ __decorate([
|
|
|
226
226
|
editableInPropertyPage("Center Y", 1 /* PropertyTypeForEdition.Float */, "VIGNETTE", { min: 0, max: 1 })
|
|
227
227
|
], NodeRenderGraphImageProcessingPostProcessBlock.prototype, "vignetteCenterY", null);
|
|
228
228
|
__decorate([
|
|
229
|
-
editableInPropertyPage("Color",
|
|
229
|
+
editableInPropertyPage("Color", 6 /* PropertyTypeForEdition.Color4 */, "VIGNETTE")
|
|
230
230
|
], NodeRenderGraphImageProcessingPostProcessBlock.prototype, "vignetteColor", null);
|
|
231
231
|
__decorate([
|
|
232
|
-
editableInPropertyPage("Blend mode",
|
|
232
|
+
editableInPropertyPage("Blend mode", 5 /* PropertyTypeForEdition.List */, "VIGNETTE", {
|
|
233
233
|
options: [
|
|
234
234
|
{ value: ImageProcessingConfiguration.VIGNETTEMODE_MULTIPLY, label: "Multiply" },
|
|
235
235
|
{ value: ImageProcessingConfiguration.VIGNETTEMODE_OPAQUE, label: "Opaque" },
|
|
@@ -429,7 +429,7 @@ export class NodeRenderGraphSSRPostProcessBlock extends NodeRenderGraphBasePostP
|
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
__decorate([
|
|
432
|
-
editableInPropertyPage("Texture type",
|
|
432
|
+
editableInPropertyPage("Texture type", 9 /* PropertyTypeForEdition.TextureType */, "SSR")
|
|
433
433
|
], NodeRenderGraphSSRPostProcessBlock.prototype, "textureType", null);
|
|
434
434
|
__decorate([
|
|
435
435
|
editableInPropertyPage("Debug", 0 /* PropertyTypeForEdition.Boolean */, "SSR")
|
|
@@ -199,7 +199,7 @@ export class NodeRenderGraphBaseShadowGeneratorBlock extends NodeRenderGraphBloc
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
__decorate([
|
|
202
|
-
editableInPropertyPage("Map size",
|
|
202
|
+
editableInPropertyPage("Map size", 5 /* PropertyTypeForEdition.List */, "PROPERTIES", {
|
|
203
203
|
options: [
|
|
204
204
|
{ label: "128", value: 128 },
|
|
205
205
|
{ label: "256", value: 256 },
|
|
@@ -227,7 +227,7 @@ __decorate([
|
|
|
227
227
|
editableInPropertyPage("Darkness", 1 /* PropertyTypeForEdition.Float */, "PROPERTIES", { min: 0, max: 1 })
|
|
228
228
|
], NodeRenderGraphBaseShadowGeneratorBlock.prototype, "darkness", null);
|
|
229
229
|
__decorate([
|
|
230
|
-
editableInPropertyPage("Filter",
|
|
230
|
+
editableInPropertyPage("Filter", 5 /* PropertyTypeForEdition.List */, "PROPERTIES", {
|
|
231
231
|
options: [
|
|
232
232
|
{ label: "None", value: ShadowGenerator.FILTER_NONE },
|
|
233
233
|
{ label: "Exponential", value: ShadowGenerator.FILTER_EXPONENTIALSHADOWMAP },
|
|
@@ -241,7 +241,7 @@ __decorate([
|
|
|
241
241
|
})
|
|
242
242
|
], NodeRenderGraphBaseShadowGeneratorBlock.prototype, "filter", null);
|
|
243
243
|
__decorate([
|
|
244
|
-
editableInPropertyPage("Filter quality",
|
|
244
|
+
editableInPropertyPage("Filter quality", 5 /* PropertyTypeForEdition.List */, "PROPERTIES", {
|
|
245
245
|
options: [
|
|
246
246
|
{ label: "Low", value: ShadowGenerator.QUALITY_LOW },
|
|
247
247
|
{ label: "Medium", value: ShadowGenerator.QUALITY_MEDIUM },
|
|
@@ -162,7 +162,7 @@ export class NodeRenderGraphCascadedShadowGeneratorBlock extends NodeRenderGraph
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
__decorate([
|
|
165
|
-
editableInPropertyPage("Number of cascades",
|
|
165
|
+
editableInPropertyPage("Number of cascades", 5 /* PropertyTypeForEdition.List */, "CSM PROPERTIES", {
|
|
166
166
|
options: [
|
|
167
167
|
{ label: "2", value: 2 },
|
|
168
168
|
{ label: "3", value: 3 },
|
|
@@ -491,70 +491,70 @@ __decorate([
|
|
|
491
491
|
editableInPropertyPage("Don't render if material depth write is disabled", 0 /* PropertyTypeForEdition.Boolean */, "PROPERTIES")
|
|
492
492
|
], NodeRenderGraphGeometryRendererBlock.prototype, "dontRenderWhenMaterialDepthWriteIsDisabled", null);
|
|
493
493
|
__decorate([
|
|
494
|
-
editableInPropertyPage("View depth format",
|
|
494
|
+
editableInPropertyPage("View depth format", 8 /* PropertyTypeForEdition.TextureFormat */, "GEOMETRY BUFFERS")
|
|
495
495
|
], NodeRenderGraphGeometryRendererBlock.prototype, "viewDepthFormat", void 0);
|
|
496
496
|
__decorate([
|
|
497
|
-
editableInPropertyPage("View depth type",
|
|
497
|
+
editableInPropertyPage("View depth type", 9 /* PropertyTypeForEdition.TextureType */, "GEOMETRY BUFFERS")
|
|
498
498
|
], NodeRenderGraphGeometryRendererBlock.prototype, "viewDepthType", void 0);
|
|
499
499
|
__decorate([
|
|
500
|
-
editableInPropertyPage("Normalized view depth format",
|
|
500
|
+
editableInPropertyPage("Normalized view depth format", 8 /* PropertyTypeForEdition.TextureFormat */, "GEOMETRY BUFFERS")
|
|
501
501
|
], NodeRenderGraphGeometryRendererBlock.prototype, "normalizedViewDepthFormat", void 0);
|
|
502
502
|
__decorate([
|
|
503
|
-
editableInPropertyPage("Normalized view depth type",
|
|
503
|
+
editableInPropertyPage("Normalized view depth type", 9 /* PropertyTypeForEdition.TextureType */, "GEOMETRY BUFFERS")
|
|
504
504
|
], NodeRenderGraphGeometryRendererBlock.prototype, "normalizedViewDepthType", void 0);
|
|
505
505
|
__decorate([
|
|
506
|
-
editableInPropertyPage("Screen depth format",
|
|
506
|
+
editableInPropertyPage("Screen depth format", 8 /* PropertyTypeForEdition.TextureFormat */, "GEOMETRY BUFFERS")
|
|
507
507
|
], NodeRenderGraphGeometryRendererBlock.prototype, "screenDepthFormat", void 0);
|
|
508
508
|
__decorate([
|
|
509
|
-
editableInPropertyPage("Screen depth type",
|
|
509
|
+
editableInPropertyPage("Screen depth type", 9 /* PropertyTypeForEdition.TextureType */, "GEOMETRY BUFFERS")
|
|
510
510
|
], NodeRenderGraphGeometryRendererBlock.prototype, "screenDepthType", void 0);
|
|
511
511
|
__decorate([
|
|
512
|
-
editableInPropertyPage("View normal format",
|
|
512
|
+
editableInPropertyPage("View normal format", 8 /* PropertyTypeForEdition.TextureFormat */, "GEOMETRY BUFFERS")
|
|
513
513
|
], NodeRenderGraphGeometryRendererBlock.prototype, "viewNormalFormat", void 0);
|
|
514
514
|
__decorate([
|
|
515
|
-
editableInPropertyPage("View normal type",
|
|
515
|
+
editableInPropertyPage("View normal type", 9 /* PropertyTypeForEdition.TextureType */, "GEOMETRY BUFFERS")
|
|
516
516
|
], NodeRenderGraphGeometryRendererBlock.prototype, "viewNormalType", void 0);
|
|
517
517
|
__decorate([
|
|
518
|
-
editableInPropertyPage("World normal format",
|
|
518
|
+
editableInPropertyPage("World normal format", 8 /* PropertyTypeForEdition.TextureFormat */, "GEOMETRY BUFFERS")
|
|
519
519
|
], NodeRenderGraphGeometryRendererBlock.prototype, "worldNormalFormat", void 0);
|
|
520
520
|
__decorate([
|
|
521
|
-
editableInPropertyPage("World normal type",
|
|
521
|
+
editableInPropertyPage("World normal type", 9 /* PropertyTypeForEdition.TextureType */, "GEOMETRY BUFFERS")
|
|
522
522
|
], NodeRenderGraphGeometryRendererBlock.prototype, "worldNormalType", void 0);
|
|
523
523
|
__decorate([
|
|
524
|
-
editableInPropertyPage("Local position format",
|
|
524
|
+
editableInPropertyPage("Local position format", 8 /* PropertyTypeForEdition.TextureFormat */, "GEOMETRY BUFFERS")
|
|
525
525
|
], NodeRenderGraphGeometryRendererBlock.prototype, "localPositionFormat", void 0);
|
|
526
526
|
__decorate([
|
|
527
|
-
editableInPropertyPage("Local position type",
|
|
527
|
+
editableInPropertyPage("Local position type", 9 /* PropertyTypeForEdition.TextureType */, "GEOMETRY BUFFERS")
|
|
528
528
|
], NodeRenderGraphGeometryRendererBlock.prototype, "localPositionType", void 0);
|
|
529
529
|
__decorate([
|
|
530
|
-
editableInPropertyPage("World position format",
|
|
530
|
+
editableInPropertyPage("World position format", 8 /* PropertyTypeForEdition.TextureFormat */, "GEOMETRY BUFFERS")
|
|
531
531
|
], NodeRenderGraphGeometryRendererBlock.prototype, "worldPositionFormat", void 0);
|
|
532
532
|
__decorate([
|
|
533
|
-
editableInPropertyPage("World position type",
|
|
533
|
+
editableInPropertyPage("World position type", 9 /* PropertyTypeForEdition.TextureType */, "GEOMETRY BUFFERS")
|
|
534
534
|
], NodeRenderGraphGeometryRendererBlock.prototype, "worldPositionType", void 0);
|
|
535
535
|
__decorate([
|
|
536
|
-
editableInPropertyPage("Albedo format",
|
|
536
|
+
editableInPropertyPage("Albedo format", 8 /* PropertyTypeForEdition.TextureFormat */, "GEOMETRY BUFFERS")
|
|
537
537
|
], NodeRenderGraphGeometryRendererBlock.prototype, "albedoFormat", void 0);
|
|
538
538
|
__decorate([
|
|
539
|
-
editableInPropertyPage("Albedo type",
|
|
539
|
+
editableInPropertyPage("Albedo type", 9 /* PropertyTypeForEdition.TextureType */, "GEOMETRY BUFFERS")
|
|
540
540
|
], NodeRenderGraphGeometryRendererBlock.prototype, "albedoType", void 0);
|
|
541
541
|
__decorate([
|
|
542
|
-
editableInPropertyPage("Reflectivity format",
|
|
542
|
+
editableInPropertyPage("Reflectivity format", 8 /* PropertyTypeForEdition.TextureFormat */, "GEOMETRY BUFFERS")
|
|
543
543
|
], NodeRenderGraphGeometryRendererBlock.prototype, "reflectivityFormat", void 0);
|
|
544
544
|
__decorate([
|
|
545
|
-
editableInPropertyPage("Reflectivity type",
|
|
545
|
+
editableInPropertyPage("Reflectivity type", 9 /* PropertyTypeForEdition.TextureType */, "GEOMETRY BUFFERS")
|
|
546
546
|
], NodeRenderGraphGeometryRendererBlock.prototype, "reflectivityType", void 0);
|
|
547
547
|
__decorate([
|
|
548
|
-
editableInPropertyPage("Velocity format",
|
|
548
|
+
editableInPropertyPage("Velocity format", 8 /* PropertyTypeForEdition.TextureFormat */, "GEOMETRY BUFFERS")
|
|
549
549
|
], NodeRenderGraphGeometryRendererBlock.prototype, "velocityFormat", void 0);
|
|
550
550
|
__decorate([
|
|
551
|
-
editableInPropertyPage("Velocity type",
|
|
551
|
+
editableInPropertyPage("Velocity type", 9 /* PropertyTypeForEdition.TextureType */, "GEOMETRY BUFFERS")
|
|
552
552
|
], NodeRenderGraphGeometryRendererBlock.prototype, "velocityType", void 0);
|
|
553
553
|
__decorate([
|
|
554
|
-
editableInPropertyPage("Linear velocity format",
|
|
554
|
+
editableInPropertyPage("Linear velocity format", 8 /* PropertyTypeForEdition.TextureFormat */, "GEOMETRY BUFFERS")
|
|
555
555
|
], NodeRenderGraphGeometryRendererBlock.prototype, "linearVelocityFormat", void 0);
|
|
556
556
|
__decorate([
|
|
557
|
-
editableInPropertyPage("Linear velocity type",
|
|
557
|
+
editableInPropertyPage("Linear velocity type", 9 /* PropertyTypeForEdition.TextureType */, "GEOMETRY BUFFERS")
|
|
558
558
|
], NodeRenderGraphGeometryRendererBlock.prototype, "linearVelocityType", void 0);
|
|
559
559
|
RegisterClass("BABYLON.NodeRenderGraphGeometryRendererBlock", NodeRenderGraphGeometryRendererBlock);
|
|
560
560
|
//# sourceMappingURL=geometryRendererBlock.js.map
|
|
@@ -135,7 +135,7 @@ export class NodeRenderGraphClearBlock extends NodeRenderGraphBlock {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
__decorate([
|
|
138
|
-
editableInPropertyPage("Color",
|
|
138
|
+
editableInPropertyPage("Color", 6 /* PropertyTypeForEdition.Color4 */)
|
|
139
139
|
], NodeRenderGraphClearBlock.prototype, "color", null);
|
|
140
140
|
__decorate([
|
|
141
141
|
editableInPropertyPage("Clear color", 0 /* PropertyTypeForEdition.Boolean */, undefined, { embedded: true })
|
|
@@ -7,6 +7,7 @@ export * from "./resourceContainerBlock.js";
|
|
|
7
7
|
export * from "./Layers/glowLayerBlock.js";
|
|
8
8
|
export * from "./Layers/highlightLayerBlock.js";
|
|
9
9
|
export * from "./PostProcesses/anaglyphPostProcessBlock.js";
|
|
10
|
+
export * from "./PostProcesses/basePostProcessBlock.js";
|
|
10
11
|
export * from "./PostProcesses/blackAndWhitePostProcessBlock.js";
|
|
11
12
|
export * from "./PostProcesses/bloomPostProcessBlock.js";
|
|
12
13
|
export * from "./PostProcesses/blurPostProcessBlock.js";
|
|
@@ -7,6 +7,7 @@ export * from "./resourceContainerBlock.js";
|
|
|
7
7
|
export * from "./Layers/glowLayerBlock.js";
|
|
8
8
|
export * from "./Layers/highlightLayerBlock.js";
|
|
9
9
|
export * from "./PostProcesses/anaglyphPostProcessBlock.js";
|
|
10
|
+
export * from "./PostProcesses/basePostProcessBlock.js";
|
|
10
11
|
export * from "./PostProcesses/blackAndWhitePostProcessBlock.js";
|
|
11
12
|
export * from "./PostProcesses/bloomPostProcessBlock.js";
|
|
12
13
|
export * from "./PostProcesses/blurPostProcessBlock.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FrameGraph/Node/Blocks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AAEzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAE7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mDAAmD,CAAC;AAClE,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AAEpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC","sourcesContent":["export * from \"./cullObjectsBlock\";\r\nexport * from \"./elbowBlock\";\r\nexport * from \"./executeBlock\";\r\nexport * from \"./inputBlock\";\r\nexport * from \"./outputBlock\";\r\nexport * from \"./resourceContainerBlock\";\r\n\r\nexport * from \"./Layers/glowLayerBlock\";\r\nexport * from \"./Layers/highlightLayerBlock\";\r\n\r\nexport * from \"./PostProcesses/anaglyphPostProcessBlock\";\r\nexport * from \"./PostProcesses/blackAndWhitePostProcessBlock\";\r\nexport * from \"./PostProcesses/bloomPostProcessBlock\";\r\nexport * from \"./PostProcesses/blurPostProcessBlock\";\r\nexport * from \"./PostProcesses/chromaticAberrationPostProcessBlock\";\r\nexport * from \"./PostProcesses/circleOfConfusionPostProcessBlock\";\r\nexport * from \"./PostProcesses/depthOfFieldPostProcessBlock\";\r\nexport * from \"./PostProcesses/extractHighlightsPostProcessBlock\";\r\nexport * from \"./PostProcesses/fxaaPostProcessBlock\";\r\nexport * from \"./PostProcesses/grainPostProcessBlock\";\r\nexport * from \"./PostProcesses/imageProcessingPostProcessBlock\";\r\nexport * from \"./PostProcesses/motionBlurPostProcessBlock\";\r\nexport * from \"./PostProcesses/passPostProcessBlock\";\r\nexport * from \"./PostProcesses/ssrPostProcessBlock\";\r\n\r\nexport * from \"./Rendering/csmShadowGeneratorBlock\";\r\nexport * from \"./Rendering/geometryRendererBlock\";\r\nexport * from \"./Rendering/objectRendererBlock\";\r\nexport * from \"./Rendering/shadowGeneratorBlock\";\r\nexport * from \"./Rendering/taaObjectRendererBlock\";\r\nexport * from \"./Rendering/utilityLayerRendererBlock\";\r\n\r\nexport * from \"./Teleport/teleportInBlock\";\r\nexport * from \"./Teleport/teleportOutBlock\";\r\n\r\nexport * from \"./Textures/clearBlock\";\r\nexport * from \"./Textures/copyTextureBlock\";\r\nexport * from \"./Textures/generateMipmapsBlock\";\r\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../dev/core/src/FrameGraph/Node/Blocks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AAEzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAE7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAClE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mDAAmD,CAAC;AAClE,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AAEpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC","sourcesContent":["export * from \"./cullObjectsBlock\";\r\nexport * from \"./elbowBlock\";\r\nexport * from \"./executeBlock\";\r\nexport * from \"./inputBlock\";\r\nexport * from \"./outputBlock\";\r\nexport * from \"./resourceContainerBlock\";\r\n\r\nexport * from \"./Layers/glowLayerBlock\";\r\nexport * from \"./Layers/highlightLayerBlock\";\r\n\r\nexport * from \"./PostProcesses/anaglyphPostProcessBlock\";\r\nexport * from \"./PostProcesses/basePostProcessBlock\";\r\nexport * from \"./PostProcesses/blackAndWhitePostProcessBlock\";\r\nexport * from \"./PostProcesses/bloomPostProcessBlock\";\r\nexport * from \"./PostProcesses/blurPostProcessBlock\";\r\nexport * from \"./PostProcesses/chromaticAberrationPostProcessBlock\";\r\nexport * from \"./PostProcesses/circleOfConfusionPostProcessBlock\";\r\nexport * from \"./PostProcesses/depthOfFieldPostProcessBlock\";\r\nexport * from \"./PostProcesses/extractHighlightsPostProcessBlock\";\r\nexport * from \"./PostProcesses/fxaaPostProcessBlock\";\r\nexport * from \"./PostProcesses/grainPostProcessBlock\";\r\nexport * from \"./PostProcesses/imageProcessingPostProcessBlock\";\r\nexport * from \"./PostProcesses/motionBlurPostProcessBlock\";\r\nexport * from \"./PostProcesses/passPostProcessBlock\";\r\nexport * from \"./PostProcesses/ssrPostProcessBlock\";\r\n\r\nexport * from \"./Rendering/csmShadowGeneratorBlock\";\r\nexport * from \"./Rendering/geometryRendererBlock\";\r\nexport * from \"./Rendering/objectRendererBlock\";\r\nexport * from \"./Rendering/shadowGeneratorBlock\";\r\nexport * from \"./Rendering/taaObjectRendererBlock\";\r\nexport * from \"./Rendering/utilityLayerRendererBlock\";\r\n\r\nexport * from \"./Teleport/teleportInBlock\";\r\nexport * from \"./Teleport/teleportOutBlock\";\r\n\r\nexport * from \"./Textures/clearBlock\";\r\nexport * from \"./Textures/copyTextureBlock\";\r\nexport * from \"./Textures/generateMipmapsBlock\";\r\n"]}
|
|
@@ -50,6 +50,10 @@ export declare class FrameGraphTextureManager {
|
|
|
50
50
|
* Gets or sets a boolean indicating if debug logs should be shown when applying texture allocation optimization (default: false)
|
|
51
51
|
*/
|
|
52
52
|
showDebugLogsForTextureAllcationOptimization: boolean;
|
|
53
|
+
/** If provided (greater than 0), forces the output screen width for percentage-based textures. If not provided (0), engine.getRenderWidth() will be used */
|
|
54
|
+
forcedOutputScreenWidth: number;
|
|
55
|
+
/** If provided (greater than 0), forces the output screen height for percentage-based textures. If not provided (0), engine.getRenderHeight() will be used */
|
|
56
|
+
forcedOutputScreenHeight: number;
|
|
53
57
|
/**
|
|
54
58
|
* Constructs a new instance of the texture manager
|
|
55
59
|
* @param engine The engine to use
|
|
@@ -37,6 +37,10 @@ export class FrameGraphTextureManager {
|
|
|
37
37
|
* Gets or sets a boolean indicating if debug logs should be shown when applying texture allocation optimization (default: false)
|
|
38
38
|
*/
|
|
39
39
|
this.showDebugLogsForTextureAllcationOptimization = false;
|
|
40
|
+
/** If provided (greater than 0), forces the output screen width for percentage-based textures. If not provided (0), engine.getRenderWidth() will be used */
|
|
41
|
+
this.forcedOutputScreenWidth = 0;
|
|
42
|
+
/** If provided (greater than 0), forces the output screen height for percentage-based textures. If not provided (0), engine.getRenderHeight() will be used */
|
|
43
|
+
this.forcedOutputScreenHeight = 0;
|
|
40
44
|
this._addSystemTextures();
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
@@ -281,7 +285,9 @@ export class FrameGraphTextureManager {
|
|
|
281
285
|
* @param screenHeight The height of the screen (default: the height of the rendering canvas)
|
|
282
286
|
* @returns The absolute dimensions of the texture
|
|
283
287
|
*/
|
|
284
|
-
getAbsoluteDimensions(size, screenWidth
|
|
288
|
+
getAbsoluteDimensions(size, screenWidth, screenHeight) {
|
|
289
|
+
screenWidth = this.forcedOutputScreenWidth || this.engine.getRenderWidth(true);
|
|
290
|
+
screenHeight = this.forcedOutputScreenHeight || this.engine.getRenderHeight(true);
|
|
285
291
|
const { width, height } = getDimensionsFromTextureSize(size);
|
|
286
292
|
return {
|
|
287
293
|
width: Math.floor((width * screenWidth) / 100),
|