Commit 43f577c0 authored by Percen's avatar Percen
Browse files

Merge branch '21pesi1bif-master-patch-34077' into 'master'

Update public/index.html

See merge request !59
1 merge request!59Update public/index.html
Pipeline #10547 passed with stage
in 6 seconds
Showing with 18 additions and 21 deletions
+18 -21
...@@ -59,7 +59,25 @@ ...@@ -59,7 +59,25 @@
background-color: #387a39; background-color: #387a39;
} }
.menu-bar {
position: fixed;
top: 0;
left: 0;
right: 0;
display: flex;
justify-content: center;
background-color: rgba(0, 0, 0, 0.7);
padding: 10px;
z-index: 10;
}
.menu-bar button {
background-color: #2196F3;
}
.menu-bar button:hover {
background-color: #1E88E5;
}
</style> </style>
<script src="https://unpkg.com/three@0.126.0/build/three.js"></script> <script src="https://unpkg.com/three@0.126.0/build/three.js"></script>
<script src="https://unpkg.com/three@0.126.0/examples/js/loaders/GLTFLoader.js"></script> <script src="https://unpkg.com/three@0.126.0/examples/js/loaders/GLTFLoader.js"></script>
...@@ -95,27 +113,6 @@ ...@@ -95,27 +113,6 @@
scene.add(reticle); scene.add(reticle);
}); });
const container = new ThreeMeshUI.Block({
width: 1.2,
height: 0.7,
padding: 0.2,
fontFamily: './assets/Roboto-msdf.json',
fontTexture: './assets/Roboto-msdf.png',
});
//
const text = new ThreeMeshUI.Text({
content: "Some text to be displayed"
});
container.add( text );
// scene is a THREE.Scene (see three.js)
scene.add( container );
// This is typically done in the render loop :
ThreeMeshUI.update();
// Modelle laden // Modelle laden
loader.load("https://threejs.org/examples/models/gltf/RobotExpressive/RobotExpressive.glb", (gltf) => { loader.load("https://threejs.org/examples/models/gltf/RobotExpressive/RobotExpressive.glb", (gltf) => {
models.car = gltf.scene; models.car = gltf.scene;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment