aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/vreyeparameters/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:42:17 -0500
commitda78a9e329e272dedb2400b79a3bdeebff387d47 (patch)
treee6ef8aa7c43556f55ddfe031a01cf0a8fa271bfe /files/ko/web/api/vreyeparameters/index.html
parent1109132f09d75da9a28b649c7677bb6ce07c40c0 (diff)
downloadtranslated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.gz
translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.bz2
translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.zip
initial commit
Diffstat (limited to 'files/ko/web/api/vreyeparameters/index.html')
-rw-r--r--files/ko/web/api/vreyeparameters/index.html88
1 files changed, 88 insertions, 0 deletions
diff --git a/files/ko/web/api/vreyeparameters/index.html b/files/ko/web/api/vreyeparameters/index.html
new file mode 100644
index 0000000000..79f25639ba
--- /dev/null
+++ b/files/ko/web/api/vreyeparameters/index.html
@@ -0,0 +1,88 @@
+---
+title: VREyeParameters
+slug: Web/API/VREyeParameters
+tags:
+ - API
+ - Experimental
+ - Landing
+ - Reference
+ - VR
+ - Virtual Reality
+ - WebVR
+translation_of: Web/API/VREyeParameters
+---
+<div>{{APIRef("WebVR API")}}{{SeeCompatTable}}</div>
+
+<p><a href="/en-US/docs/Web/API/WebVR_API">WebVR API</a>의 <code><strong>VREyeParameters</strong></code> 인터페이스는 시야 정보 필드를 포함하여 특정한 눈에 대한 장면을 정확하게 렌더링 하는 데 필요한 모든 정보를 나타냅니다.</p>
+
+<p>{{domxref("VRDisplay.getEyeParameters()")}} 방법을 통해 액세스 할 수 있습니다.</p>
+
+<div class="warning">
+<p>The values in this interface should not be used to compute view or projection matrices. In order to ensure the widest possible hardware compatibility use the matrices provided by {{domxref("VRFrameData")}}.</p>
+</div>
+
+<h2 id="속성">속성</h2>
+
+<dl>
+ <dt>{{domxref("VREyeParameters.offset")}} {{readonlyInline}}</dt>
+ <dd>사용자 눈 사이의 중심점에서 눈 중심까지의 거리를 미터 단위로 나타냅니다.</dd>
+ <dt>{{domxref("VREyeParameters.fieldOfView")}} {{readonlyInline}}</dt>
+ <dd>현재 눈에 보이는 시야를 설명하며,사용자가 동공 사이의 거리(m/s)를 조절할 때 달라질 수 있습니다.(IPD).</dd>
+ <dt>{{domxref("VREyeParameters.renderWidth")}} {{readonlyInline}}</dt>
+ <dd>각 눈 뷰포트의 권장 렌더 타겟 폭을 픽셀 단위로 설명합니다.</dd>
+ <dt>{{domxref("VREyeParameters.renderHeight")}} {{readonlyInline}}</dt>
+ <dd>각 눈 뷰포트의 권장 렌더 타겟 높이를 픽셀 단위로 나타냅니다..</dd>
+</dl>
+
+<h2 id="예제">예제</h2>
+
+<pre class="brush: js">navigator.getVRDisplays().then(function(displays) {
+ // If a display is available, use it to present the scene
+ vrDisplay = displays[0];
+ console.log('Display found');
+ // Starting the presentation when the button is clicked:
+ // It can only be called in response to a user gesture
+ btn.addEventListener('click', function() {
+ vrDisplay.requestPresent([{ source: canvas }]).then(function() {
+ console.log('Presenting to WebVR display');
+
+ // Set the canvas size to the size of the vrDisplay viewport
+
+ var leftEye = vrDisplay.getEyeParameters('left');
+ var rightEye = vrDisplay.getEyeParameters('right');
+
+ canvas.width = Math.max(leftEye.renderWidth, rightEye.renderWidth) * 2;
+ canvas.height = Math.max(leftEye.renderHeight, rightEye.renderHeight);
+
+ drawVRScene();
+ });
+ });
+});</pre>
+
+<h2 id="명세">명세</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">명세</th>
+ <th scope="col">상태</th>
+ <th scope="col">설명</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('WebVR 1.1', '#vreyeparameters', 'VREyeParameters')}}</td>
+ <td>{{Spec2('WebVR 1.1')}}</td>
+ <td>최초 정의</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="브라우저_호환성"><span lang="ko">브라우저 호환성</span></h2>
+
+<p>{{Compat("api.VREyeParameters")}}</p>
+
+<h2 id="같이_보기">같이 보기</h2>
+
+<ul>
+ <li><a href="/en-US/docs/Web/API/WebVR_API">WebVR API homepage</a></li>
+ <li><a href="http://mozvr.com/">MozVr.com</a> — demos, downloads, and other resources from the Mozilla VR team.</li>
+</ul>