Browse Source

Fix cursor vertrex attributes

luboslenco 1 month ago
parent
commit
93113ff124
2 changed files with 1 additions and 3 deletions
  1. 1 2
      base/shaders/cursor.kong
  2. 0 1
      base/sources/ts/pipes.ts

+ 1 - 2
base/shaders/cursor.kong

@@ -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;

+ 0 - 1
base/sources/ts/pipes.ts

@@ -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;