Added a flag to use drawing buffer size rather than the window size (fixes a bug, where if you are rendering off-screen, the rendering still works as expected, as by default the clientScreen size is usually zero, the flag allows us to use the webgl drawing buffer size so that our uniforms work as expected).
Self terminating works (there was a memory leak, where the workers would never be released now the workers would work as expected thanks [Atanas Georgiev])
Now we handle error responses correctly (Thanks [kamilmingulov])
Additions:
Now we allow more fine grained normals filtering in pointclouds (See NormalFilteringMode enum, there are 3 options, with the default behavior being the same)
Added the ability to blend the pointcloud against a given texture (To play around with this set useTextureBlending to true and set the backgroundMap to a texture).
Added the ability to change pointcloud point appearance by applying a fragment shader to them. ( To play around with this usePointCloudMixing to true, and see what happens, you can control the behaviors by changing the uniform pointCloudMixingMode and stripeDistance, stripeDivisior, and pointCloudMixAngle).
Note: all of these are conditionally compiled to the shader so by default these won't be activated.
Change log: Chores:
Additions:
NormalFilteringMode
enum, there are 3 options, with the default behavior being the same)useTextureBlending
to true and set the backgroundMap to a texture).usePointCloudMixing
to true, and see what happens, you can control the behaviors by changing the uniform pointCloudMixingMode and stripeDistance, stripeDivisior, and pointCloudMixAngle).Note: all of these are conditionally compiled to the shader so by default these won't be activated.