diff --git a/src/bin/wireframe/mesh.wgsl b/src/bin/wireframe/mesh.wgsl index 0de69b4..70dcea2 100644 --- a/src/bin/wireframe/mesh.wgsl +++ b/src/bin/wireframe/mesh.wgsl @@ -37,7 +37,7 @@ fn vs_main(ver: VertexInput) -> VertexOutput { var out: VertexOutput; var light = dot(ver.normal, normalize(vec3(1., 1., 1.))); light = .7 + .3 * light; - out.vertex_color = light * mesh.color; + out.vertex_color = vec4(light * mesh.color.xyz, mesh.color.w); out.clip_position = camera.mvp * vec4(ver.position, 1.); return out; }