@woosh/meep-engine 2.34.39 → 2.34.40

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.
@@ -27,7 +27,9 @@ export class AmbientOcclusionPostProcessEffect extends EnginePlugin {
27
27
  fragmentShader: SAOShader.fragmentShader,
28
28
  vertexShader: SAOShader.vertexShader,
29
29
  uniforms: UniformsUtils.clone(SAOShader.uniforms),
30
- glslVersion: GLSL3
30
+ glslVersion: GLSL3,
31
+ depthWrite: false,
32
+ depthTest: false
31
33
  });
32
34
 
33
35
  // AO parameters
@@ -168,7 +168,8 @@ const SAOShader = {
168
168
  void main() {
169
169
  float centerDepth = getDepth( vUv );
170
170
  if( centerDepth >= ( 1.0 - EPSILON ) ) {
171
- discard;
171
+ out_occlusion = 1.0;
172
+ return;
172
173
  }
173
174
 
174
175
  float centerViewZ = getViewZ( centerDepth );
@@ -82,6 +82,7 @@ export class EnginePluginManager extends BaseProcess {
82
82
  if (state === ProcessState.Initialized || state === ProcessState.Running) {
83
83
  const dependencies = plugin.dependencies;
84
84
 
85
+ // resolve dependencies
85
86
  for (let i = 0; i < dependencies.length; i++) {
86
87
  const dependency = dependencies[i];
87
88
 
@@ -206,7 +207,7 @@ export class EnginePluginManager extends BaseProcess {
206
207
  async shutdown() {
207
208
  super.shutdown();
208
209
 
209
- return this.__transition_active_plugins_to(ProcessState.Initialized);
210
+ return this.__transition_active_plugins_to(ProcessState.Finalized);
210
211
  }
211
212
 
212
213
  /**
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "productName": "Meep",
6
6
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.34.39",
8
+ "version": "2.34.40",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",