From 98a32af5c2dc57497441ed06d2638353b39e3046 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Mon, 26 May 2014 20:49:20 +0200 Subject: [PATCH] Minor --- css/app.css | 2 +- index.js | 2 +- package.json | 2 +- scss/app.scss | 5 ++++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/css/app.css b/css/app.css index eaac353..6c68b23 100644 --- a/css/app.css +++ b/css/app.css @@ -1 +1 @@ -body,html{width:100%;height:100%;padding:0;margin:0;overflow:hidden;background-color:black;}canvas{width:100%;height:100%;}#svg{display:none;}.debug #svg{display:block;position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%;} \ No newline at end of file +body,html{width:100%;height:100%;padding:0;margin:0;overflow:hidden;}body{background-color:#141414;background:-webkit-radial-gradient(#1a1a1a, #000000);background:radial-gradient(#1a1a1a, #000000);}canvas{width:100%;height:100%;}#svg{display:none;}.debug #svg{display:block;position:absolute;top:0;bottom:0;left:0;right:0;width:100%;height:100%;} \ No newline at end of file diff --git a/index.js b/index.js index 5dd62ad..d745a2e 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ var sceneHeight = window.innerHeight; var camera = new THREE.PerspectiveCamera( 75, sceneHeight / sceneWidth, 0.1, 2500 ); -var renderer = new THREE.WebGLRenderer({ alpha: true}); +var renderer = new THREE.WebGLRenderer({ alpha: true, antialias: true}); renderer.setSize(sceneWidth, sceneHeight); document.body.appendChild( renderer.domElement ); diff --git a/package.json b/package.json index 3b50214..7233f20 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "license": "BSD-2-Clause", "dependencies": { "three": "~0.66.2", - "libxml-to-js": "~0.3.11", + "libxml-to-js": "~0.3.11" }, "devDependencies": { "express": "^4.3.1", diff --git a/scss/app.scss b/scss/app.scss index 62aab74..ca2b74e 100644 --- a/scss/app.scss +++ b/scss/app.scss @@ -6,7 +6,10 @@ html padding: 0; margin: 0; overflow: hidden; - background-color: black; +} +body { + background-color: lighten(black, 8%); + background: radial-gradient(lighten(black, 10%), black); } canvas { width: 100%;