Set depth attachment

This commit is contained in:
Lubos Lenco
2020-05-26 19:23:44 +02:00
parent 4821579413
commit 53c9b6c17b
9 changed files with 20 additions and 17 deletions
@@ -43,7 +43,8 @@ class MaterialShaderContext {
fragment_shader: '',
vertex_shader: '',
vertex_elements: Reflect.hasField(props, 'vertex_elements') ? props.vertex_elements : [ {name: "pos", data: 'short4norm'}, {name: "nor", data: 'short2norm'}],
color_attachments: props.color_attachments
color_attachments: props.color_attachments,
depth_attachment: props.depth_attachment
};
if (props.color_writes_red != null)