mirror of
https://github.com/openglobus/openglobus.git
synced 2025-12-08 19:25:27 +00:00
889 eee:))
This commit is contained in:
parent
357039c474
commit
d56ee5b971
@ -202,7 +202,7 @@ class Ray {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
bh!.setTextureEnabled(this._handlerIndex, false);
|
||||
bh!.setTextureDisabled(this._handlerIndex);
|
||||
rn!.updateTexCoords();
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user