modular-particle-system-webgl-renderer
Advanced tools
Comparing version 1.0.2 to 1.1.0
{ | ||
"name": "modular-particle-system-webgl-renderer", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "WebGL 2 renderer for modular-particle-system package", | ||
@@ -33,4 +33,4 @@ "type": "module", | ||
"dependencies": { | ||
"modular-particle-system": "^1.2.0" | ||
"modular-particle-system": "^1.3.0" | ||
} | ||
} |
@@ -16,3 +16,2 @@ Simple WebGL 2 renderer package for [`modular-particle-system`](https://www.npmjs.com/package/modular-particle-system). | ||
- NPM package | ||
@@ -32,3 +31,3 @@ | ||
const imgCloudTexture = new Image(); | ||
imgCloudTexture.src = `my-assets/generic/cloud.png` | ||
imgCloudTexture.src = `my-assets/generic/cloud.png`; | ||
const textures = { | ||
@@ -62,2 +61,3 @@ "generic/cloud.png": imgCloudTexture, | ||
This is a object where each property key describes the name of a texture and the value is a texture source. Several types of values are supported: | ||
- `ArrayBufferView` | ||
@@ -71,3 +71,3 @@ - `ImageData` | ||
If `omitted or `true, the renderer will automatically update the `ParticleSystem` between each frame. | ||
If `omitted or `true, the renderer will automatically update the `ParticleSystem` between each frame. | ||
@@ -82,3 +82,2 @@ #### Optional `coordinateSystem` | ||
#### Optional `maxParticlesCount` | ||
@@ -89,2 +88,7 @@ | ||
#### Optional `loggingEnabled` | ||
Defaults to `true`, which enables printing information to the console. | ||
To disable all non-error console logging, set to `false`. | ||
### Destroy Renderer | ||
@@ -91,0 +95,0 @@ |
31758
108