Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 typedef HTMLCanvasElement VRSource; | 5 typedef HTMLCanvasElement VRSource; |
| 6 | 6 |
| 7 // http://mozvr.github.io/webvr-spec/webvr.html#vrlayer | 7 // https://w3c.github.io/webvr/#vrlayer |
|
foolip
2016/12/02 09:55:29
https://w3c.github.io/webvr/#interface-vrlayer
Cu
Mark Dittmer
2016/12/02 14:05:46
Done.
Indeed :)
| |
| 8 | 8 |
| 9 dictionary VRLayer { | 9 dictionary VRLayer { |
| 10 // The canvas to be presented to the VRDisplay | 10 // The canvas to be presented to the VRDisplay |
| 11 VRSource? source = null; | 11 VRSource? source = null; |
| 12 | 12 |
| 13 // The left and right bounds contain 4 git statvalues defining the texture bou nds | 13 // The left and right bounds contain 4 git statvalues defining the texture bou nds |
| 14 // within the canvas to present to the eye in UV space. | 14 // within the canvas to present to the eye in UV space. |
| 15 // [0] left offset of the bounds (0.0 - 1.0) | 15 // [0] left offset of the bounds (0.0 - 1.0) |
| 16 // [1] top offset of the bounds (0.0 - 1.0) | 16 // [1] top offset of the bounds (0.0 - 1.0) |
| 17 // [2] width of the bounds (0.0 - 1.0) | 17 // [2] width of the bounds (0.0 - 1.0) |
| 18 // [3] height of the bounds (0.0 - 1.0) | 18 // [3] height of the bounds (0.0 - 1.0) |
| 19 sequence<float> leftBounds = []; //= [0.0, 0.0, 0.5, 1.0]; | 19 sequence<float> leftBounds = []; //= [0.0, 0.0, 0.5, 1.0]; |
| 20 sequence<float> rightBounds = []; //= [0.5, 0.0, 0.5, 1.0]; | 20 sequence<float> rightBounds = []; //= [0.5, 0.0, 0.5, 1.0]; |
| 21 }; | 21 }; |
| OLD | NEW |