@predy-js/render-interface 0.1.61-beta.24 → 0.1.61-beta.26

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
@@ -2,7 +2,7 @@
2
2
  * Name: @predy-js/render-interface
3
3
  * Description: undefined
4
4
  * Author: undefined
5
- * Version: v0.1.61-beta.24
5
+ * Version: v0.1.61-beta.26
6
6
  */
7
7
 
8
8
  /******************************************************************************
@@ -1856,12 +1856,12 @@ var GLProgram = /** @class */ (function () {
1856
1856
  val = _this.getSemanticValue(state, semanticName);
1857
1857
  }
1858
1858
  if (val !== undefined && val !== null) {
1859
- _this.setGLUniformValue(name, val, info, gl);
1860
- }
1861
- else if (!info.isTexture) {
1862
- consoleWarn("mesh ".concat(state.currentMesh.name, " uniform ").concat(name, " value unset"));
1859
+ return _this.setGLUniformValue(name, val, info, gl);
1863
1860
  }
1864
1861
  }
1862
+ if (!info.isTexture) {
1863
+ consoleWarn("mesh ".concat(state.currentMesh.name, " uniform ").concat(name, " value unset"));
1864
+ }
1865
1865
  });
1866
1866
  };
1867
1867
  GLProgram.prototype.setGLUniformValue = function (name, value, info, gl) {
@@ -5255,6 +5255,7 @@ var MarsGeometry = /** @class */ (function () {
5255
5255
  var option = {
5256
5256
  data: data,
5257
5257
  usage: gpuBufferOption.usage,
5258
+ target: gpuBufferOption.target,
5258
5259
  };
5259
5260
  buffers[gpuBufferName] = option;
5260
5261
  this._dirtyFlags[gpuBufferName].discard = true;
@@ -5364,10 +5365,10 @@ var MarsGeometry = /** @class */ (function () {
5364
5365
  usage: constants.STATIC_DRAW,
5365
5366
  };
5366
5367
  if (data instanceof Uint16Array) {
5367
- this.indexDataType = constants.SHORT;
5368
+ this.indexDataType = constants.UNSIGNED_SHORT;
5368
5369
  }
5369
5370
  else if (data instanceof Uint32Array) {
5370
- this.indexDataType = constants.INT;
5371
+ this.indexDataType = constants.UNSIGNED_INT;
5371
5372
  }
5372
5373
  }
5373
5374
  // 顶点属性参数
@@ -5820,7 +5821,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5820
5821
  return MarsSharedGeometry;
5821
5822
  }(MarsGeometry));
5822
5823
 
5823
- consoleLog('version: ' + "0.1.61-beta.24");
5824
+ consoleLog('version: ' + "0.1.61-beta.26");
5824
5825
 
5825
5826
  export { DestroyOptions, GPUBufferOptionsMemoryShared, MarsGeometry as Geometry, MarsInstancedMesh as InstancedMesh, MarsTextureFactory, MarsMaterial as Material, MarsMaterialDataBlock as MaterialDataBlock, MarsMesh as Mesh, MarsRenderFrame as RenderFrame, MarsRenderPass as RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassMeshOrder, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, MarsRenderer as Renderer, ShaderCompileResultStatus, ShaderLibraryEmpty, MarsSharedGeometry as SharedGeometry, MarsTexture as Texture, TextureLoadAction, TextureSourceType, TextureStoreAction, constants, getDefaultGPUCapability, getDefaultTextureFactory, setDefaultTextureFactory };
5826
5827
  //# sourceMappingURL=index.mjs.map