Skip to content

Commit

Permalink
Update index.htm
Browse files Browse the repository at this point in the history
  • Loading branch information
freealise authored Oct 7, 2024
1 parent 387f798 commit e8291b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/basic/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,10 @@
mesh.dispose(false, true);
}
scene.meshes[scene.meshes.length-1].alphaIndex = 1;
//scene.meshes[scene.meshes.length-1].material.diffuseTexture.hasAlpha = true;
scene.meshes[scene.meshes.length-1].material.diffuseTexture.hasAlpha = true;
//scene.meshes[scene.meshes.length-1].material.useAlphaFromDiffuseTexture = true;
scene.meshes[scene.meshes.length-1].material.opacityTexture.getAlphaFromRGB = true;
scene.meshes[scene.meshes.length-1].material.opacityTexture = scene.meshes[scene.meshes.length-1].material.diffuseTexture;
scene.meshes[scene.meshes.length-1].material.opacityTexture.getAlphaFromRGB = true;

document.getElementById("fnum").innerHTML += '<option selected value="' + (scene.meshes.length-1) + '">video</option>';
editControl = new EditControl(scene.meshes[parseInt(document.getElementById("fnum").value)], camera, canvas, 1.0, true, 0.02);
Expand Down

0 comments on commit e8291b5

Please sign in to comment.