You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.8 KiB
HTML
86 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ar">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<base href="../../../" />
|
|
<script src="page.js"></script>
|
|
<link type="text/css" rel="stylesheet" href="page.css" />
|
|
</head>
|
|
<body class="rtl">
|
|
[page:Object3D] →
|
|
|
|
<h1>[name]</h1>
|
|
|
|
<p class="desc">
|
|
ينشئ مساعدًا بصريًا يتكون من [page:Mesh] كروي لـ
|
|
[page:HemisphereLight HemisphereLight].
|
|
</p>
|
|
|
|
<h2>مثال الكود</h2>
|
|
|
|
<code>
|
|
const light = new THREE.HemisphereLight( 0xffffbb, 0x080820, 1 );
|
|
const helper = new THREE.HemisphereLightHelper( light, 5 );
|
|
scene.add( helper );
|
|
</code>
|
|
|
|
<h2>المنشئ (Constructor)</h2>
|
|
|
|
<h3>
|
|
[name]( [param:HemisphereLight light], [param:Number sphereSize],
|
|
[param:Hex color] )
|
|
</h3>
|
|
<p>
|
|
[page:HemisphereLight light] -- الضوء المراد تصويره. <br /><br />
|
|
|
|
[page:Number size] -- حجم الشبكة المستخدمة لتصوير الضوء.<br /><br />
|
|
|
|
[page:Hex color] -- (اختياري) إذا لم يتم تعيين هذا، فسيأخذ المساعد
|
|
لون الضوء.
|
|
</p>
|
|
|
|
<h2>الخصائص (Properties)</h2>
|
|
<p>انظر إلى الفئة الأساسية [page:Object3D] للحصول على الخصائص المشتركة.</p>
|
|
|
|
<h3>[property:HemisphereLight light]</h3>
|
|
<p>إشارة إلى HemisphereLight المُعروض.</p>
|
|
|
|
<h3>[property:Object matrix]</h3>
|
|
<p>
|
|
إشارة إلى [page:Object3D.matrixWorld matrixWorld] الخاص بـ hemisphereLight.
|
|
</p>
|
|
|
|
<h3>[property:Object matrixAutoUpdate]</h3>
|
|
<p>
|
|
انظر [page:Object3D.matrixAutoUpdate]. تعيين إلى `false` هنا كما يستخدم المساعد
|
|
[page:Object3D.matrixWorld matrixWorld] الخاص بـ hemisphereLight.
|
|
</p>
|
|
|
|
<h3>[property:hex color]</h3>
|
|
<p>
|
|
معلمة اللون التي تم تمريرها في المُنشئ. الافتراضي هو `undefined`. إذا تغير هذا،
|
|
سيُحدِّث لون المساعد في المرة التالية التي يتم فيها استدعاء [page:.update update].
|
|
</p>
|
|
|
|
<h2>الطرق (Methods)</h2>
|
|
<p>انظر إلى الفئة الأساسية [page:Object3D] للحصول على الطرق المشتركة.</p>
|
|
|
|
<h3>[method:undefined dispose]()</h3>
|
|
<p>
|
|
يُطلِق الموارد المتعلقة بوحدة معالجة الرسومات التي تم تخصيصها من قبل هذه العيّنة. اتصل بهذه
|
|
الطريقة كلما لم يعد هذه العيّنة مستخدمة في تطبيقك.
|
|
</p>
|
|
|
|
<h3>[method:undefined update]()</h3>
|
|
<p>
|
|
يُحدِّث المساعد ليطابق موقع واتجاه [page:.light].
|
|
</p>
|
|
|
|
<h2>المصدر (Source)</h2>
|
|
|
|
<p>
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
</p>
|
|
</body>
|
|
</html>
|