Skip to content

Commit e89cdd4

Browse files
committed
Fixup shader before uniform in crates demo
1 parent 61cb3f8 commit e89cdd4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

demos/src/bin/crates.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ fn main() {
129129
.target(&mut frame.buf)
130130
.render();
131131

132-
let krate = batch.clone().mesh(&krate);
132+
let krate = batch.clone().mesh(&krate).shader(crate_shader);
133133

134134
let n = 30;
135135
for i in (-n..=n).step_by(5) {
@@ -143,8 +143,6 @@ fn main() {
143143
proj: cam.project,
144144
light,
145145
})
146-
// TODO Allow setting shader before uniform
147-
.shader(crate_shader)
148146
// TODO storing &mut target makes Batch not Clone, maybe
149147
// pass to render() instead. OTOH then a Frame::batch
150148
// helper wouldn't be as useful. Maybe just wrap the

0 commit comments

Comments
 (0)