laymur 0.17.3 → 0.17.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.
@@ -99,6 +99,7 @@ class UILayer {
99
99
  this._private_solverWrapperInternal.suggestVariableValue(this.wVariable, width);
100
100
  this._private_solverWrapperInternal.suggestVariableValue(this.hVariable, height);
101
101
  this._private_sceneWrapperInternal.resize(width, height);
102
+ this._private_signalResizedInternal.emit(width, height, this);
102
103
  const orientation = width > height ? UIOrientation.HORIZONTAL : UIOrientation.VERTICAL;
103
104
  if (orientation !== this._private_orientationInternal) {
104
105
  this._private_orientationInternal = orientation;
@@ -1,4 +1,4 @@
1
- import { InstancedBufferGeometry, Uint16BufferAttribute, Float32BufferAttribute, Vector4, ShaderMaterial, InstancedBufferAttribute, Vector2, Vector3, Matrix3, Matrix4 } from 'three';
1
+ import { InstancedBufferGeometry, Uint16BufferAttribute, Float32BufferAttribute, Vector4, ShaderMaterial, DoubleSide, InstancedBufferAttribute, Vector2, Vector3, Matrix3, Matrix4 } from 'three';
2
2
  import { UIColor } from '../../color/UIColor.js';
3
3
  import { UITransparencyMode } from '../../UITransparencyMode.js';
4
4
  import { buildGenericPlaneFragmentShader, DEFAULT_ALPHA_TEST, resolveGLSLTypeInfo } from '../shared.js';
@@ -113,6 +113,8 @@ function buildMaterial(source, uniformProperties, varyingProperties, transparenc
113
113
  alphaHash: transparency === UITransparencyMode.HASH,
114
114
  depthWrite: transparency !== UITransparencyMode.BLEND,
115
115
  depthTest: true,
116
+ side: DoubleSide,
117
+ forceSinglePass: true,
116
118
  });
117
119
  }
118
120
  function reconstructValue(referenceValue, array, offset) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "laymur",
3
- "version": "0.17.3",
3
+ "version": "0.17.5",
4
4
  "description": "Constraint-based UI library for Three.js mobile advertisements",
5
5
  "keywords": [
6
6
  "ui",