<!DOCTYPE html> <html lang="fr"> <head> <meta charset="utf-8" /> <base href="../../../" /> <script src="page.js"></script> <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> [page:Material] → <h1>[name]</h1> <p class="desc"> Ce matériau peut recevoir des ombres, mais sinon il est complètement transparent. </p> <h2>Code Example</h2> <code> const geometry = new THREE.PlaneGeometry( 2000, 2000 ); geometry.rotateX( - Math.PI / 2 ); const material = new THREE.ShadowMaterial(); material.opacity = 0.2; const plane = new THREE.Mesh( geometry, material ); plane.position.y = -200; plane.receiveShadow = true; scene.add( plane ); </code> <h2>Exemples</h2> <p> [example:webgl_geometry_spline_editor geometry / spline / editor] </p> <h2>Constructeur</h2> <h3>[name]( [param:Object parameters] )</h3> <p> [page:Object parameters] - (optionnel) un objet avec une ou plusieurs propriétés définissant l'apparence du matériau. Toute propriété du matériau (y compris toute proprioété héritée de [page:Material]) peut être passée dans l'objet.<br /><br /> </p> <h2>Propriétés</h2> <p>Voir la classe [page:Material] pour les propriétés communes.</p> <h3>[property:Color color]</h3> <p>[page:Color] couleur du matériau, noire par défaut (0x000000).</p> <h3>[property:Boolean fog]</h3> <p>Si le matériau est affecté par le brouillard (fog) La valeur par défaut est `true`.</p> <h3>[property:Boolean transparent]</h3> <p>Définit si le matériau est transparent. La valeur par défaut est `true`.</p> <h2>Méthodes</h2> <p>Voir la classe [page:Material] pour les méthodes communes.</p> <h2>Source</h2> <p> [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] </p> </body> </html>