castShadows

Controls if this renderable casts shadows, false by default.

If the View's shadow type is set to ShadowType.VSM, castShadows should only be disabled if either is true:

  • receiveShadows is also disabled

  • the object is guaranteed to not cast shadows on itself or other objects (for example, a ground plane)

Return

Builder reference for chaining calls.

Parameters

enabled

whether shadow casting is enabled

Controls if this renderable casts shadows, false by default.

If the View's shadow type is set to ShadowType.VSM, castShadows should only be disabled if either is true:

  • receiveShadows is also disabled

  • the object is guaranteed to not cast shadows on itself or other objects (for example, a ground plane)

Return

Builder reference for chaining calls.

Parameters

enabled

whether shadow casting is enabled

Controls if this renderable casts shadows, false by default.

If the View's shadow type is set to ShadowType.VSM, castShadows should only be disabled if either is true:

  • receiveShadows is also disabled

  • the object is guaranteed to not cast shadows on itself or other objects (for example, a ground plane)

Return

Builder reference for chaining calls.

Parameters

enabled

whether shadow casting is enabled

Controls if this renderable casts shadows, false by default.

If the View's shadow type is set to ShadowType.VSM, castShadows should only be disabled if either is true:

  • receiveShadows is also disabled

  • the object is guaranteed to not cast shadows on itself or other objects (for example, a ground plane)

Return

Builder reference for chaining calls.

Parameters

enabled

whether shadow casting is enabled

Controls if this renderable casts shadows, false by default.

If the View's shadow type is set to ShadowType.VSM, castShadows should only be disabled if either is true:

  • receiveShadows is also disabled

  • the object is guaranteed to not cast shadows on itself or other objects (for example, a ground plane)

Return

Builder reference for chaining calls.

Parameters

enabled

whether shadow casting is enabled