Fix terrain example
@@ -275,24 +275,16 @@ pub async fn run() {
&camera,
&ScreenQuad::new(&context),
&[],
- Some(ColorTexture::Single {
- texture: &color_texture,
- }),
- Some(DepthTexture::Single {
- texture: &depth_texture,
- }),
+ Some(ColorTexture::Single(&color_texture)),
+ Some(DepthTexture::Single(&depth_texture)),
)
.render_with_post_material(
&water_material,
&camera,
&water,
&[&light],
- Some(ColorTexture::Single {
- texture: &color_texture,
- }),
- Some(DepthTexture::Single {
- texture: &depth_texture,
- }),
+ Some(ColorTexture::Single(&color_texture)),
+ Some(DepthTexture::Single(&depth_texture)),
)
.write(|| {
gui.render();
