Skip to content
Snippets Groups Projects
Commit f1106374 authored by geoffrey.menetrey's avatar geoffrey.menetrey
Browse files

clean

parent 9b24a9eb
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@
<canvas width="400" height="600" id="my-canvas">
Please use a browser that supports "canvas"
</canvas>
<div id="which_light">lumière directionnelle</div>
<div id="lightx">light x : </div>
<div id="lighty">light y : </div>
<div id="lightz">light z : </div>
......
var yAngle = 0;
var xAngle = 0;
var eyeX = 0.0;
var eyeY = 3.0;
var eyeZ = 15.0;
......@@ -78,9 +74,6 @@ function checkKey(e) {
which_light = !which_light
initElements();
}
/*xAngle = xAngle * Math.PI / 180
yAngle = yAngle * Math.PI / 180*/
};
// Vertex shader program
......@@ -232,6 +225,11 @@ function main() {
function onTimerTick() {
var light = "lumière directionnelle"
if (!which_light){
light = "lumière ponctuelle"
}
document.getElementById('which_light').innerHTML = light;
document.getElementById('lightx').innerHTML = "light x : " + xLightDir;
document.getElementById('lighty').innerHTML = "light y : " + yLightDir;
document.getElementById('lightz').innerHTML = "light z : " + zLightDir;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment