|
39 | 39 | bottom: 20px;
|
40 | 40 | right: 20px;
|
41 | 41 | color: black;
|
| 42 | + visibility: hidden; /*it isn't that usable*/ |
42 | 43 | }
|
43 | 44 | </style>
|
44 | 45 | <body>
|
|
172 | 173 | const DEBUG_DRAW_BONES = false;
|
173 | 174 |
|
174 | 175 | document.getElementById("rotate-toggle").addEventListener("change", function() {
|
175 |
| - depthseg.setXFlip(this.checked); |
| 176 | + depthseg.setXZFlip(this.checked); |
176 | 177 | });
|
177 | 178 |
|
178 | 179 | var timer = app.createTimer();
|
|
268 | 269 | mass: 0, // ground
|
269 | 270 | visible: true,
|
270 | 271 | ground: 1,
|
271 |
| - opacity: 0.8 |
| 272 | + opacity: 0.7 |
| 273 | + }, |
| 274 | + { // wall |
| 275 | + translate: [0, 0, -0.4], |
| 276 | + quat: [-0.1, 0, 0, 1], |
| 277 | + scale: [3, 1, 0.05], |
| 278 | + mvpMatrix: mat4.create(), |
| 279 | + modelMatrix: mat4.create(), |
| 280 | + lightMvpMatrix: mat4.create(), |
| 281 | + mainDrawCall: null, |
| 282 | + shadowDrawCall: null, |
| 283 | + array: planeArray, |
| 284 | + mass: 0, // ground |
| 285 | + visible: true, |
| 286 | + ground: 1, |
| 287 | + opacity: 1 |
| 288 | + }, |
| 289 | + { // nearest wall |
| 290 | + translate: [0, 0, 0.4], |
| 291 | + quat: [0, 0, 0, 1], |
| 292 | + scale: [3, 1, 0.05], |
| 293 | + mvpMatrix: mat4.create(), |
| 294 | + modelMatrix: mat4.create(), |
| 295 | + lightMvpMatrix: mat4.create(), |
| 296 | + mainDrawCall: null, |
| 297 | + shadowDrawCall: null, |
| 298 | + array: planeArray, |
| 299 | + mass: 0, // ground |
| 300 | + visible: true, |
| 301 | + ground: 1, |
| 302 | + opacity: 0.2 |
| 303 | + }, |
| 304 | + { // wall to the right, not visible to let the light in. |
| 305 | + translate: [0.5, 0, 0], |
| 306 | + quat: [0, -0.2, 0, 1], |
| 307 | + scale: [0.05, 1, 3], |
| 308 | + mvpMatrix: mat4.create(), |
| 309 | + modelMatrix: mat4.create(), |
| 310 | + lightMvpMatrix: mat4.create(), |
| 311 | + mainDrawCall: null, |
| 312 | + shadowDrawCall: null, |
| 313 | + array: planeArray, |
| 314 | + mass: 0, // ground |
| 315 | + visible: false, |
| 316 | + ground: 1, |
| 317 | + opacity: 0.2 |
| 318 | + }, |
| 319 | + { // wall on the left. |
| 320 | + translate: [-0.5, 0, 0], |
| 321 | + quat: [0, 0.2, 0, 1], |
| 322 | + scale: [0.05, 1, 3], |
| 323 | + mvpMatrix: mat4.create(), |
| 324 | + modelMatrix: mat4.create(), |
| 325 | + lightMvpMatrix: mat4.create(), |
| 326 | + mainDrawCall: null, |
| 327 | + shadowDrawCall: null, |
| 328 | + array: planeArray, |
| 329 | + mass: 0, // ground |
| 330 | + visible: true, |
| 331 | + ground: 1, |
| 332 | + opacity: 1 |
272 | 333 | },
|
273 | 334 | {
|
274 | 335 | translate: [0.1, 0.075, 0],
|
|
0 commit comments