mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-25 13:18:21 -06:00
forgor vec4 type
This commit is contained in:
parent
e09f5405d8
commit
4cc1754951
|
@ -39,7 +39,7 @@ var s_diffuse: sampler;
|
||||||
|
|
||||||
@fragment
|
@fragment
|
||||||
fn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {
|
fn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {
|
||||||
let color: vec4 = textureSample(t_diffuse, s_diffuse, in.uv, in.tex_index);
|
let color: vec4<f32> = textureSample(t_diffuse, s_diffuse, in.uv, in.tex_index);
|
||||||
if (color.a == 0.) {
|
if (color.a == 0.) {
|
||||||
discard;
|
discard;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue