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
|
@@ -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.
|
|
32
|
-
this.blur_RT = new WebGLRenderTarget(OScreen.
|
|
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.
|
|
55
|
+
if (this.main_RT.width !== OScreen.width || this.main_RT.height !== OScreen.height)
|
|
56
56
|
{
|
|
57
|
-
this.main_RT.setSize(OScreen.
|
|
58
|
-
this.blur_RT.setSize(OScreen.
|
|
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.
|
|
32
|
-
this.blur_RT = new WebGLRenderTarget(OScreen.
|
|
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.
|
|
103
|
+
if (this.main_RT.width !== OScreen.width || this.main_RT.height !== OScreen.height)
|
|
104
104
|
{
|
|
105
|
-
this.main_RT.setSize(OScreen.
|
|
106
|
-
this.blur_RT.setSize(OScreen.
|
|
105
|
+
this.main_RT.setSize(OScreen.width, OScreen.height);
|
|
106
|
+
this.blur_RT.setSize(OScreen.width, OScreen.height);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|