Skip to content
Snippets Groups Projects
Commit d3a113f9 authored by HERRY Matteo's avatar HERRY Matteo
Browse files

Ajout fichier .JS

parent 37957a6f
No related branches found
No related tags found
No related merge requests found
"use strict";
// IMPORTS
import * as THREE from 'three';
import { TWEEN } from 'https://unpkg.com/three@0.139.0/examples/jsm/libs/tween.module.min.js';
import { OBJLoader } from 'three/addons/loaders/OBJLoader.js';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
import { dat } from '../lib/dat.gui.min.js';
import { Coordinates } from '../lib/Coordinates.js';
// DECLARATIONS
var camera, scene, renderer;
var windowScale;
var cameraControls, effectController;
var clock = new THREE.Clock();
var gridX = true;
var gridY = false;
var gridZ = false;
var axes = true;
var ground = true;
function init(){
}
function fillscene(){
}
function animate(){
}
function render(){
}
try {
init();
animate();
} catch (e) {
var errorReport = "Your program encountered an unrecoverable error, can not draw on canvas. Error was:<br/><br/>";
$('#webGL').append(errorReport + e);
}
\ No newline at end of file
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<h1 class="centre"> HERRY Mattéo - HERRY Elwyn</h1> <h1 class="centre"> HERRY Mattéo - HERRY Elwyn</h1>
<div id="webGL" class="centre"></div> <div id="webGL" class="centre"></div>
<!-- Mon script avec un chemin relatif --> <!-- Mon script avec un chemin relatif -->
<script type="module" src="exo2.js"></script> <script type="module" src="TABLO.js"></script>
<p class="centre"> Exercice 1 </p> <p class="centre"> LE TABLO</p>
</body> </body>
</html> </html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment