Commit ae7b0836 authored by ALEXANDRE Loris's avatar ALEXANDRE Loris
Browse files

Update tableau.js

parent c199fbfd
Pipeline #5191 passed with stage
in 15 seconds
"use strict";
// ALEXANDRE Loris
// Reproduction du tableau : Van Gogh - Terrasse du café le soir
var camera, scene, renderer;
var cameraControls, effectController;
......@@ -34,7 +35,7 @@ grdtexture.wrapS = wrapVal2;
grdtexture.wrapT = wrapVal2;
grdtexture.repeat.set(20,20);
// ---------------
function createBuilding() {
var building = new THREE.Object3D();
......@@ -240,6 +241,8 @@ function createTableAndChair() {
}
// ---------------
function init() {
var canvasWidth = 799;
var canvasHeight = 1003;
......@@ -272,8 +275,15 @@ function fillScene() {
var pointLight = new THREE.PointLight( 0xff0000, 1, 1000 );
pointLight.position.set( 300, 300, 200 );
scene.add( pointLight );
var pointLightHelper = new THREE.PointLightHelper( pointLight, 10 );
scene.add( pointLightHelper );
// var pointLightHelper = new THREE.PointLightHelper( pointLight, 10 );
// scene.add( pointLightHelper );
// BACKGROUND (SKYBOX)
scene.background = new THREE.CubeTextureLoader()
.setPath('skybox/')
.load(['px.png', 'nx.png',
'py.png', 'ny.png',
'pz.png', 'nz.png']);
var light = new THREE.DirectionalLight( 0xFFFFFF, 1.0 );
......
Markdown is supported
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