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.
92 lines
2.9 KiB
HTML
92 lines
2.9 KiB
HTML
2 months ago
|
<!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] → [page:Mesh] →
|
||
|
|
||
|
<h1>[name]</h1>
|
||
|
|
||
|
<p class="desc">
|
||
|
يعرض كائن مساعد يتكون من [page:Mesh] كروي لتصوير
|
||
|
[page:PointLight].
|
||
|
</p>
|
||
|
|
||
|
<h2>مثال الكود</h2>
|
||
|
|
||
|
<code>
|
||
|
const pointLight = new THREE.PointLight( 0xff0000, 1, 100 );
|
||
|
pointLight.position.set( 10, 10, 10 );
|
||
|
scene.add( pointLight );
|
||
|
|
||
|
const sphereSize = 1;
|
||
|
const pointLightHelper = new THREE.PointLightHelper( pointLight, sphereSize );
|
||
|
scene.add( pointLightHelper );
|
||
|
</code>
|
||
|
|
||
|
<h2>أمثلة (Examples)</h2>
|
||
|
|
||
|
<p>[example:webgl_helpers WebGL / helpers]</p>
|
||
|
|
||
|
<h2>المنشئ (Constructor)</h2>
|
||
|
|
||
|
<h3>
|
||
|
[name]( [param:PointLight light], [param:Float sphereSize], [param:Hex color] )
|
||
|
</h3>
|
||
|
<p>
|
||
|
[page:PointLight light] -- الضوء المراد تصويره. <br /><br />
|
||
|
|
||
|
[page:Float sphereSize] -- (اختياري) حجم مساعد الكرة.
|
||
|
الافتراضي هو `1`.<br /><br />
|
||
|
|
||
|
[page:Hex color] -- (اختياري) إذا لم يتم تعيين هذا، فسيأخذ المساعد
|
||
|
لون الضوء.
|
||
|
</p>
|
||
|
|
||
|
<h2>الخصائص (Properties)</h2>
|
||
|
<p>انظر إلى الفئة الأساسية [page:Mesh] للحصول على الخصائص المشتركة.</p>
|
||
|
|
||
|
<h3>[property:PointLight light]</h3>
|
||
|
<p>[page:PointLight] المُعروض.</p>
|
||
|
|
||
|
<h3>[property:Object matrix]</h3>
|
||
|
<p>
|
||
|
إشارة إلى [page:Object3D.matrixWorld matrixWorld] الخاص بـ pointLight.
|
||
|
</p>
|
||
|
|
||
|
<h3>[property:Object matrixAutoUpdate]</h3>
|
||
|
<p>
|
||
|
انظر [page:Object3D.matrixAutoUpdate]. تعيين إلى `false` هنا كما يستخدم المساعد
|
||
|
[page:Object3D.matrixWorld matrixWorld] الخاص بـ pointLight.
|
||
|
</p>
|
||
|
|
||
|
<h3>[property:hex color]</h3>
|
||
|
<p>
|
||
|
معلمة اللون التي تم تمريرها في المُنشئ. الافتراضي هو `undefined`. إذا تغير هذا،
|
||
|
سيُحدِّث لون المساعد في المرة التالية التي يتم فيها استدعاء [page:.update update].
|
||
|
</p>
|
||
|
|
||
|
<h2>الطرق (Methods)</h2>
|
||
|
<p>انظر إلى الفئة الأساسية [page:Mesh] للحصول على الطرق المشتركة.</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>
|