ohzi-core 10.3.2 → 10.3.3

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": "ohzi-core",
3
- "version": "10.3.2",
3
+ "version": "10.3.3",
4
4
  "description": "OHZI Core Library",
5
5
  "source": "src/index.js",
6
6
  "module": "build/index.module.js",
@@ -28,8 +28,8 @@ class BloomRender extends BaseRender
28
28
  {
29
29
  this.blurrer = new Blurrer();
30
30
  // this.blurrer = new DualFilteringBlurrer()
31
- this.main_RT = new WebGLRenderTarget(OScreen.render_width, OScreen.render_height);
32
- this.blur_RT = new WebGLRenderTarget(OScreen.render_width, OScreen.render_height);
31
+ this.main_RT = new WebGLRenderTarget(OScreen.width, OScreen.height);
32
+ this.blur_RT = new WebGLRenderTarget(OScreen.width, OScreen.height);
33
33
  }
34
34
 
35
35
  render()
@@ -52,10 +52,10 @@ class BloomRender extends BaseRender
52
52
 
53
53
  __check_RT_size()
54
54
  {
55
- if (this.main_RT.width !== OScreen.render_width || this.main_RT.height !== OScreen.render_height)
55
+ if (this.main_RT.width !== OScreen.width || this.main_RT.height !== OScreen.height)
56
56
  {
57
- this.main_RT.setSize(OScreen.render_width, OScreen.render_height);
58
- this.blur_RT.setSize(OScreen.render_width, OScreen.render_height);
57
+ this.main_RT.setSize(OScreen.width, OScreen.height);
58
+ this.blur_RT.setSize(OScreen.width, OScreen.height);
59
59
  }
60
60
  }
61
61
  }
@@ -28,8 +28,8 @@ class UnrealBloomRender extends BaseRender
28
28
  on_enter()
29
29
  {
30
30
  this.blurrer = new GaussianBlurrer();
31
- this.main_RT = new WebGLRenderTarget(OScreen.render_width, OScreen.render_height);
32
- this.blur_RT = new WebGLRenderTarget(OScreen.render_width, OScreen.render_height);
31
+ this.main_RT = new WebGLRenderTarget(OScreen.width, OScreen.height);
32
+ this.blur_RT = new WebGLRenderTarget(OScreen.width, OScreen.height);
33
33
 
34
34
  this.bloom_compose_mat = new UnrealBloomComposeMaterial(5);
35
35
  this.blurrer = new GaussianBlurrer(5);
@@ -100,10 +100,10 @@ class UnrealBloomRender extends BaseRender
100
100
 
101
101
  __check_RT_size()
102
102
  {
103
- if (this.main_RT.width !== OScreen.render_width || this.main_RT.height !== OScreen.render_height)
103
+ if (this.main_RT.width !== OScreen.width || this.main_RT.height !== OScreen.height)
104
104
  {
105
- this.main_RT.setSize(OScreen.render_width, OScreen.render_height);
106
- this.blur_RT.setSize(OScreen.render_width, OScreen.render_height);
105
+ this.main_RT.setSize(OScreen.width, OScreen.height);
106
+ this.blur_RT.setSize(OScreen.width, OScreen.height);
107
107
  }
108
108
  }
109
109
  }