BBMOD_SHADER_DEPTH

macro

Description

Struct.BBMOD_BaseShader Depth shader for static models.

Example

Following code enables casting shadows for a custom material (requires a BBMOD_Renderer with enabled shadows).

material = BBMOD_MATERIAL_DEFAULT.clone()
    .set_shader(BBMOD_ERenderPass.Shadows, BBMOD_SHADER_DEPTH);

See also

BBMOD_BaseShader, BBMOD_ERenderPass.Shadows, BBMOD_SHADER_DEPTH_ANIMATED, BBMOD_SHADER_DEPTH_BATCHED

Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on November 16, 2022 using GMDoc.