Class DrawObjectsWithMaterialRenderPass

Class Hierarchy

Use the Draw Objects With Material Render Pass to render nodes provided by an object source using a material.

The only difference between the Draw Objects With Material Render Pass and Draw Objects Render Pass is that the Draw Objects With Material Render Pass renders content using a material you can set in the MaterialProperty.

For example, use the Draw Objects With Material Render Pass to render all nodes in a scene using a shadow map shader and render their distances from the light to a depth texture. You can then use this depth texture to render shadows by using it as a property in a material.

Use a Draw Objects With Material render pass to render nodes under a Scene node provided by an object source with a specific material you set in this render pass.

Inherits properties and message types from DrawObjectsWithMaterialRenderPassMetadata.

Synopsis

Methods
create()

Create a Draw Objects With Material Render Pass

DrawObjectsWithMaterialRenderPass.DrawObjectsWithMaterialRenderPass:create(name)

Create a Draw Objects With Material Render Pass.

Parameters
name (string)

The name of the Draw Objects With Material Render Pass.

Return Values
(DrawObjectsWithMaterialRenderPass)

The created Draw Objects With Material Render Pass.