This method of the Direct3dRM Class creates a shadow by using the specified mesh and light, projecting the shadow onto the specified plane. The shadow is a visual that should be added to the frame that contains the visual.
public Direct3dRMVisual createShadowFromMesh(Direct3dRMMesh mesh, Direct3dRMLight direct3dRMLight, float px, float py, float pz, float nx, float ny, float nz);
Returns the Direct3dRMVisual object if successful; otherwise, null.
mesh | The Direct3dRMMesh object that is casting the shadow. |
l | The Direct3dRMLight object that is the light source. |
px | The x component of the plane that the shadow is to be projected on. |
py | The y component of the plane that the shadow is to be projected on. |
pz | The z component of the plane that the shadow is to be projected on. |
nx | The x component of the normal to the plane that the shadow is to be projected on. |
ny | The y component of the normal to the plane that the shadow is to be projected on. |
nz | The z component of the normal to the plane that the shadow is to be projected on. |