# C1.Util.DX.Matrix4x4.Shadow

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Matrix4x4_Shadow_" data-uid="C1.Util.DX.Matrix4x4.Shadow*">Shadow Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Matrix4x4_Shadow_" data-uid="C1.Util.DX.Matrix4x4.Shadow*"></a>
<h4 id="C1_Util_DX_Matrix4x4_Shadow_C1_Util_DX_Vector3_C1_Util_DX_Vector3_System_Single_" data-uid="C1.Util.DX.Matrix4x4.Shadow(C1.Util.DX.Vector3,C1.Util.DX.Vector3,System.Single)">Shadow(Vector3, Vector3, float)</h4>
<div class="markdown level1 summary"><p>Creates a matrix that flattens geometry into a specified plane as if casting a shadow from a specified light source.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Matrix4x4 Shadow(Vector3 lightDirection, Vector3 normal, float d)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Shadow(lightDirection As Vector3, normal As Vector3, d As Single) As Matrix4x4</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Vector3.html">Vector3</a></td>
      <td><span class="parametername">lightDirection</span></td>
      <td><p>The direction from which the light that will cast the shadow is coming.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Vector3.html">Vector3</a></td>
      <td><span class="parametername">normal</span></td>
      <td><p>The plane's normal vector.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">d</span></td>
      <td><p>The plane's distance from the origin along its normal vector.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Matrix4x4.html">Matrix4x4</a></td>
      <td><p>A new matrix that can be used to flatten geometry onto the specified plane from the specified direction.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
