@pirireis/webglobeplugins 0.6.44-a → 0.6.45-a

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pirireis/webglobeplugins",
3
- "version": "0.6.44-a",
3
+ "version": "0.6.45-a",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT"
@@ -122,6 +122,8 @@ export default class {
122
122
  gl.bindTexture(gl.TEXTURE_2D, texture0);
123
123
  gl.uniform1i(u_float_texture0, 0);
124
124
  heatParametersBlockManager.bind();
125
+ // clear output texture
126
+ gl.clearColor(0, 0, 0, 0);
125
127
  gl.drawArrays(gl.TRIANGLE_FAN, 0, 4);
126
128
  gl.bindVertexArray(null);
127
129
  heatParametersBlockManager.unbind();
@@ -233,6 +233,7 @@ export default class {
233
233
  gl.uniform1i(u_texture, 0);
234
234
  shellBlockDataManager.bind();
235
235
  if (drawLines) gl.drawElements(gl.LINES, _drawCount, gl.UNSIGNED_SHORT, 0);
236
+ gl.clearColor(0, 0, 0, 0);
236
237
  gl.drawElements(gl.TRIANGLES, _drawCount, gl.UNSIGNED_SHORT, 0);
237
238
  shellBlockDataManager.unbind();
238
239
  gl.bindVertexArray(null);