mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +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
|
@ -2,6 +2,8 @@
|
||||||
<p>
|
<p>
|
||||||
- Enhanced 3D model (creyc)<br />
|
- Enhanced 3D model (creyc)<br />
|
||||||
- More predefined options for channel map<br />
|
- More predefined options for channel map<br />
|
||||||
|
- Display motor/servo signal value inside the bars<br />
|
||||||
|
- Bugfixes<br />
|
||||||
</p>
|
</p>
|
||||||
<span>09.29.2014 - 0.52</span>
|
<span>09.29.2014 - 0.52</span>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -327,6 +327,11 @@ TABS.setup.initialize3D = function (compatibility) {
|
||||||
// load the model including materials
|
// load the model including materials
|
||||||
loader = new THREE.JSONLoader();
|
loader = new THREE.JSONLoader();
|
||||||
loader.load('./resources/models/quad_x.js', function (geometry, materials) {
|
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 = new THREE.Mesh(geometry, new THREE.MeshFaceMaterial(materials));
|
||||||
model.scale.set(10, 10, 10);
|
model.scale.set(10, 10, 10);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue