Skip to content
Snippets Groups Projects
Commit 7bfab4d0 authored by Xavier Gibert's avatar Xavier Gibert
Browse files

try to set brwoser black background color

parent 65c7fb29
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel=stylesheet href="css/base.css"/>
</head>
<body>
<body bgcolor=black>
<script src="js/three.js"></script>
<script src="js/three.ext.js"></script>
......@@ -61,7 +61,7 @@ This three.js demo is part of a collection at
</script>
<!--<input type="button" value="Say hello" onClick="showAndroidToast('Hello Android!')" />-->
<div id="ThreeJS" style="position: absolute; left:0px; top:0px"></div>
<div id="ThreeJS" style="position: absolute; left:0px; top:0px; background-color:black"></div>
<script>
// MAIN
//***********************************************************************************************************************
......
......@@ -10,7 +10,7 @@ function initScene(){
camera.lookAt(scene.position);
// RENDERER
if ( Detector.webgl ){
renderer = new THREE.WebGLRenderer( {antialias:true} );
renderer = new THREE.WebGLRenderer( {antialias:true, clearColor: 0x000000, clearAlpha: 1 } );
}else{
renderer = new THREE.CanvasRenderer();
alert('WebGL not supported in this device');
......
......@@ -20,7 +20,7 @@ import org.xwalk.core.JavascriptInterface;
* @author Xavier Gibert
*
*/
public class WebAppInterface {
public final class WebAppInterface {
Activity activity;
private ModelSimulation sim;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment