imported>ProbablePrime m ProbablePrime moved page Category:Types:ShadowCastMode to Types:ShadowCastMode |
Clean up page, improve descriptions. |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
'''ShadowCastMode''' is an | '''ShadowCastMode''' is an [[:Category:Enums|Enum]] for determining how [[Component:MeshRenderer|MeshRenderer]] and [[Component:SkinnedMeshRenderer|SkinnedMeshRenderer]] cast shadows for rendered objects. | ||
{{Table EnumValues | |||
|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 [[Type:Sidedness|face culling]] set, it is disabled for drawing the shadows, so both back and front faces will always be rendered. | |||
}} | |||
[[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.
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. |