Fix shader name

This commit is contained in:
luboslenco
2025-07-16 22:54:40 +02:00
parent e4c2c0c7c5
commit 566d5d16d8
+4 -4
View File
@@ -23,7 +23,7 @@ struct vert_out {
col: float4;
}
fun draw_image_vert(input: vert_in): vert_out {
fun draw_image_transform_vert(input: vert_in): vert_out {
var output: vert_out;
var cpos: float4 = constants.pos;
@@ -40,7 +40,7 @@ fun draw_image_vert(input: vert_in): vert_out {
return output;
}
fun draw_image_frag(input: vert_out): float4 {
fun draw_image_transform_frag(input: vert_out): float4 {
var texcolor: float4 = sample(tex, sampler_linear, input.tex) * input.col;
texcolor.rgb = texcolor.rgb * texcolor.a * input.col.a;
return texcolor;
@@ -48,6 +48,6 @@ fun draw_image_frag(input: vert_out): float4 {
#[pipe]
struct pipe {
vertex = draw_image_vert;
fragment = draw_image_frag;
vertex = draw_image_transform_vert;
fragment = draw_image_transform_frag;
}