Metal fixes

This commit is contained in:
luboslenco
2025-05-01 12:32:28 +02:00
parent 1916b6ea87
commit 62cffd93ab
10 changed files with 44 additions and 21 deletions
+4 -4
View File
@@ -17,9 +17,10 @@ const sampler_linear: sampler;
const gbufferD: tex2d;
struct vert_in {
pos: float4; // hlsl
nor: float2; // hlsl
pos: float4;
nor: float2;
tex: float2;
col: float4;
}
struct vert_out {
@@ -46,8 +47,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; // hlsl
var keep: float = input.pos.x + input.nor.x + input.col.x; // hlsl
var output: vert_out;
output.tex = input.tex;