Fix cursor vertrex attributes

This commit is contained in:
luboslenco
2025-08-14 17:07:01 +02:00
parent 0a4395625a
commit 93113ff124
2 changed files with 1 additions and 3 deletions
+1 -2
View File
@@ -20,7 +20,6 @@ struct vert_in {
pos: float4;
nor: float2;
tex: float2;
col: float4;
}
struct vert_out {
@@ -47,7 +46,7 @@ fun get_normal(p0: float3, uv: float2): float3 {
// }
fun cursor_vert(input: vert_in): vert_out {
var keep: float = input.pos.x + input.nor.x + input.col.x; // hlsl
var keep: float = input.pos.x + input.nor.x; // hlsl
var output: vert_out;
output.tex = input.tex;
-1
View File
@@ -266,7 +266,6 @@ function pipes_init() {
gpu_vertex_struct_add(vs, "pos", vertex_data_t.I16_4X_NORM);
gpu_vertex_struct_add(vs, "nor", vertex_data_t.I16_2X_NORM);
gpu_vertex_struct_add(vs, "tex", vertex_data_t.I16_2X_NORM);
gpu_vertex_struct_add(vs, "col", vertex_data_t.I16_4X_NORM);
pipes_cursor.input_layout = vs;
pipes_cursor.blend_source = blend_factor_t.SOURCE_ALPHA;
pipes_cursor.blend_destination = blend_factor_t.INV_SOURCE_ALPHA;