@threepipe/webgi-plugins 0.5.0 → 0.5.1

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/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
- * @threepipe/webgi-plugins v0.5.0
3
+ * @threepipe/webgi-plugins v0.5.1
4
4
  * Copyright 2022-2025 repalash <palash@shaders.app> (https://repalash.com)
5
- * SEE LICENSE IN LICENSE License
5
+ * SEE LICENSE IN LICENSE
6
6
  */
7
7
  var _a, _b;
8
8
  import { PipelinePassPlugin, GBufferPlugin, ProgressivePlugin, generateUiConfig, uiToggle, uiConfig, ExtendedShaderPass, Vector2, Matrix4, CopyShader, getOrCall, serialize, uniform, uiVector, matDefineBool, UnsignedByteType, shaderReplaceString, LinearSRGBColorSpace, GBufferRenderPass, Color, ShaderMaterial, NoBlending, Matrix3, DoubleSide, uiImage, uiFolderContainer, uiConfigMaterialExtension, updateBit, Vector4, HalfFloatType, AdditiveBlending, uiSlider, onChange, onChange2, Vector3, PickingPlugin, now, FrameFadePlugin, shaderUtils, ExtendedShaderMaterial, RGBAFormat, NearestFilter, bindToValue, AViewerPluginSync, updateMaterialDefines, glsl, ShaderChunk, BaseGroundPlugin, matDefine, SSAAPlugin, getTexelDecoding, AScreenPassExtensionPlugin, animateTarget, RenderPass, uiColor, makeSamplerUi, SRGBColorSpace, Mesh2, Plane, PerspectiveCamera, MathUtils, DirectionalLight2, copyObject3DUserData, Serialization, ThreeSerialization, ShadowMaterial, SimpleEventDispatcher, BasicShadowMap, ShaderMaterial2, NoColorSpace, Layers, LinearFilter, LinearMipmapLinearFilter, PCFShadowMap, PCFSoftShadowMap, VSMShadowMap } from "threepipe";
@@ -374,10 +374,7 @@ let VelocityBufferPlugin = class extends PipelinePassPlugin {
374
374
  VelocityBufferPlugin.PluginType = "VelocityBuffer";
375
375
  VelocityBufferPlugin.OldPluginType = "VelocityBufferPlugin";
376
376
  __decorateClass$d([
377
- uiImage(
378
- "Velocity Buffer"
379
- /* {readOnly: true}*/
380
- )
377
+ uiImage("Velocity Buffer", { readOnly: true })
381
378
  ], VelocityBufferPlugin.prototype, "texture", 2);
382
379
  VelocityBufferPlugin = __decorateClass$d([
383
380
  uiFolderContainer("Velocity Buffer Plugin (for TAA)")
@@ -1482,10 +1479,7 @@ let SSReflectionPlugin = class extends PipelinePassPlugin {
1482
1479
  SSReflectionPlugin.PluginType = "SSReflectionPlugin";
1483
1480
  SSReflectionPlugin.OldPluginType = "SSReflection";
1484
1481
  __decorateClass$9([
1485
- uiImage(
1486
- "SSReflection Buffer"
1487
- /* {readOnly: true}*/
1488
- )
1482
+ uiImage("SSReflection Buffer", { readOnly: true, hideOnEmpty: true })
1489
1483
  ], SSReflectionPlugin.prototype, "texture", 2);
1490
1484
  __decorateClass$9([
1491
1485
  uiConfig()
@@ -2109,10 +2103,7 @@ __decorateClass$8([
2109
2103
  ], OutlinePlugin.prototype, "transparency", 2);
2110
2104
  __decorateClass$8([
2111
2105
  uniform({ propKey: "outlineBuffer" }),
2112
- uiImage(
2113
- "Outline Buffer"
2114
- /* {readOnly: true}*/
2115
- )
2106
+ uiImage("Outline Buffer", { readOnly: true })
2116
2107
  ], OutlinePlugin.prototype, "texture", 2);
2117
2108
  OutlinePlugin = __decorateClass$8([
2118
2109
  uiFolderContainer("Outline")
@@ -2385,10 +2376,7 @@ let SSGIPlugin = class extends PipelinePassPlugin {
2385
2376
  SSGIPlugin.PluginType = "SSGIPlugin";
2386
2377
  SSGIPlugin.OldPluginType = "SSGI";
2387
2378
  __decorateClass$6([
2388
- uiImage(
2389
- "SSGI Buffer"
2390
- /* {readOnly: true}*/
2391
- )
2379
+ uiImage("SSGI Buffer", { readOnly: true })
2392
2380
  ], SSGIPlugin.prototype, "texture", 2);
2393
2381
  __decorateClass$6([
2394
2382
  uiConfig()
@@ -4248,6 +4236,7 @@ const _AdvancedGroundPlugin = (_b = class extends BaseGroundPlugin {
4248
4236
  super.refresh();
4249
4237
  }
4250
4238
  _refreshTransform() {
4239
+ if (!super._refreshTransform()) return false;
4251
4240
  if (this.autoFrustumSize) {
4252
4241
  const baker = this.shadowBaker;
4253
4242
  if (baker) {
@@ -4259,7 +4248,7 @@ const _AdvancedGroundPlugin = (_b = class extends BaseGroundPlugin {
4259
4248
  }
4260
4249
  }
4261
4250
  }
4262
- super._refreshTransform();
4251
+ return true;
4263
4252
  }
4264
4253
  // see BaseGroundPlugin
4265
4254
  fromJSON(data, meta) {
@@ -4471,6 +4460,9 @@ __decorateClass([
4471
4460
  __decorateClass([
4472
4461
  serialize("shadowBaker")
4473
4462
  ], _AdvancedGroundPlugin.prototype, "_shadowBaker");
4463
+ __decorateClass([
4464
+ bindToValue({ key: "groundReflection" })
4465
+ ], _AdvancedGroundPlugin.prototype, "planarReflections");
4474
4466
  let AdvancedGroundPlugin = _AdvancedGroundPlugin;
4475
4467
  const webgiPlugins = [
4476
4468
  TemporalAAPlugin,