Most visited

Recently visited

Material.ShadowMode

public static final enum Material.ShadowMode
extends Enum<Material.ShadowMode>

java.lang.Object
   ↳ java.lang.Enum<com.viro.core.Material.ShadowMode>
     ↳ com.viro.core.Material.ShadowMode


ShadowMode defines in what form a Material receives shadows. Shadows for this surface can either be disabled, rendered normally through shading, or rendered set to a special AR mode for use on transparent surfaces.

Summary

Enum values

Material.ShadowMode  DISABLED

Shadows are disabled for this material. 

Material.ShadowMode  NORMAL

Shadows are enabled and behave normally. 

Material.ShadowMode  TRANSPARENT

Shadows are enabled, but behave by setting the alpha channel of the surface. 

Public methods

static Material.ShadowMode valueOf(String name)
static final ShadowMode[] values()

Enum values

DISABLED

Material.ShadowMode DISABLED

Shadows are disabled for this material. Surfaces using this material will be illuminated by lights as though there are no occluding objects.

NORMAL

Material.ShadowMode NORMAL

Shadows are enabled and behave normally. Surfaces using this material will be illuminated by lights except over areas where the light is occluded.

TRANSPARENT

Material.ShadowMode TRANSPARENT

Shadows are enabled, but behave by setting the alpha channel of the surface. Surfaces using this material are set to black and transparent. Over areas where the surface is occluded from the light, the alpha value will be be greater than zero. Over areas where the surface is in full view of the light, the alpha value is zero.

This setting is used primarily in AR, in cases where you wish to have virtual objects cast shadows on real-world surfaces. You can achieve this by creating a transparent surface and aligning it with the real-world surface you wish to receive shadows. Then set the transparent surface's material to this shadow mode.

Public methods

valueOf

Material.ShadowMode valueOf (String name)

Parameters
name String

Returns
Material.ShadowMode

values

ShadowMode[] values ()

Returns
ShadowMode[]

Hooray!