Type:ShadowCastMode: Difference between revisions

From Resonite Wiki
type not types
Clean up page, improve descriptions.
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''ShadowCastMode''' is an enum for determining how [[MeshRenderer (Component)| MeshRenderer]] and [[SkinnedMeshRenderer (Component)| SkinnedMeshRenderer]] draw shadows for rendered objects.
'''ShadowCastMode''' is an [[:Category:Enums|Enum]] for determining how [[Component:MeshRenderer|MeshRenderer]] and [[Component:SkinnedMeshRenderer|SkinnedMeshRenderer]] cast shadows for rendered objects.


 
{{Table EnumValues
{| class="wikitable" style="font-size:10pt;"
|Off|0|Shadows are not cast from the object.
! colspan="2" style="background: lightblue; font-size:10pt;" | Enum
|On|1|Shadows are cast from the object.
|- style="font-size:10pt; text-align:center; font-weight:bold;"
|ShadowOnly|2|Renders only the shadow; the original mesh is not drawn.
| Name
|DoubleSided|3|Shadows are cast from the object. If the mesh' materials have [[Type:Sidedness|face culling]] set, it is disabled for drawing the shadows, so both back and front faces will always be rendered.
| Description
}}
|-
| Off
| Shadow casting is disabled
|-
| On
| Shadow casting is enabled
|-
| ShadowOnly
| Renders only the shadow - the original mesh is not drawn.
|-
| DoubleSided
|  
|}


[[Category:Type]]
[[Category:Type]]
[[Category:Enums]]

Latest revision as of 01:46, 4 March 2024

ShadowCastMode is an Enum for determining how MeshRenderer and SkinnedMeshRenderer cast shadows for rendered objects.

Values
Name Value Description
Off 0 Shadows are not cast from the object.
On 1 Shadows are cast from the object.
ShadowOnly 2 Renders only the shadow; the original mesh is not drawn.
DoubleSided 3 Shadows are cast from the object. If the mesh' materials have face culling set, it is disabled for drawing the shadows, so both back and front faces will always be rendered.