--- title: VRDisplay.depthNear slug: Web/API/VRDisplay/depthNear translation_of: Web/API/VRDisplay/depthNear original_slug: Web/API/VRDevice/depthNear ---
{{APIRef("WebVR API")}}{{SeeCompatTable}}

{{domxref("VRDisplay")}} インターフェイスの depthNear プロパティは, eye view frustum(ビューフラスタム;つまりシーンの可視領域の境界) のnear平面を定義しているz-depthの取得と設定を行います.

シンタックス

var mydepthNear = vrDisplayInstance.depthNear;

vrDisplayInstance.depthNear = 1.0;

z-depth をメートル単位で表すdouble値; 初期値は 0.01 です.

TBD.

仕様

Specification Status Comment
{{SpecName('WebVR', '#dom-vrdisplay-depthnear', 'depthNear')}} {{Spec2('WebVR')}} Initial definition

ブラウザの互換性

{{Compat("api.VRDisplay.depthNear")}}

参照