889 eee:))

This commit is contained in:
Zemledelec 2025-11-12 21:29:04 +04:00
parent 357039c474
commit d56ee5b971
2 changed files with 8 additions and 9 deletions

View File

@ -202,7 +202,7 @@ class Ray {
}
});
} else {
bh!.setTextureEnabled(this._handlerIndex, false);
bh!.setTextureDisabled(this._handlerIndex);
rn!.updateTexCoords();
}
}

View File

@ -849,17 +849,16 @@ class RayHandler {
this._changedBuffers[TEXCOORD_BUFFER] = true;
}
public setTextureEnabled(index: number, enabled: boolean) {
public setTextureDisabled(index: number) {
let i = index * 24;
let a = this._texCoordArr;
let f = enabled ? 1 : 0;
a[i + 3] = f;
a[i + 7] = f;
a[i + 11] = f;
a[i + 15] = f;
a[i + 19] = f;
a[i + 23] = f;
a[i + 3] = 0;
a[i + 7] = 0;
a[i + 11] = 0;
a[i + 15] = 0;
a[i + 19] = 0;
a[i + 23] = 0;
this._changedBuffers[TEXCOORD_BUFFER] = true;
}