mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
Merge branch 'main' of https://github.com/blitzkit/blitzkit
This commit is contained in:
commit
b7ac038ace
1 file changed
+2
-2
@@ -27,8 +27,6 @@ export const Armor = memo(() => {
|
||||
const newRenderSize = new Vector2();
|
||||
|
||||
useFrame(({ gl, camera, scene }) => {
|
||||
gl.autoClear = true;
|
||||
|
||||
gl.getSize(newRenderSize).multiplyScalar(gl.getPixelRatio());
|
||||
|
||||
if (!newRenderSize.equals(renderSize)) {
|
||||
@@ -50,6 +48,8 @@ export const Armor = memo(() => {
|
||||
|
||||
gl.clearDepth();
|
||||
gl.render(primaryArmorScene, camera);
|
||||
|
||||
gl.autoClear = true;
|
||||
}, 1);
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user