mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
update changelog, enable overdraw for materials loaded through loader
This commit is contained in:
parent
4469dfb13c
commit
663c46a122
2 changed files with 7 additions and 0 deletions
|
@ -327,6 +327,11 @@ TABS.setup.initialize3D = function (compatibility) {
|
|||
// load the model including materials
|
||||
loader = new THREE.JSONLoader();
|
||||
loader.load('./resources/models/quad_x.js', function (geometry, materials) {
|
||||
// enable overdraw in case we use canvas renderer
|
||||
for (var i = 0; i < materials.length; i++) {
|
||||
materials[i].overdraw = true;
|
||||
}
|
||||
|
||||
model = new THREE.Mesh(geometry, new THREE.MeshFaceMaterial(materials));
|
||||
model.scale.set(10, 10, 10);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue