diff --git a/res/shaders/common.hlsl b/res/shaders/common.hlsl index 71d77684..2a5bced2 100644 --- a/res/shaders/common.hlsl +++ b/res/shaders/common.hlsl @@ -1,12 +1,6 @@ #define DECL(t, n) t n : n #define DESV(t, n, s) t n : s -struct xform { - float2 bx; - float2 by; - float2 og; -}; - /* Linear color from normalized sRGB */ float4 linear_from_srgb(float4 srgb) { diff --git a/res/shaders/texture.hlsl b/res/shaders/texture.hlsl index db910821..05d336ec 100644 --- a/res/shaders/texture.hlsl +++ b/res/shaders/texture.hlsl @@ -51,8 +51,8 @@ ps_input vs_main(uint instance_id : SV_InstanceID, uint vertex_id : SV_VertexID) { vs_instance instance = G_instance_buffer[G_instance_offset + instance_id]; float2 vert = G_quad_verts[vertex_id]; - float2 world_pos = mul(instance.xf, float3(vert, 1)).xy; float2 uv_factor = G_uv_factors[vertex_id]; + float2 world_pos = mul(instance.xf, float3(vert, 1)).xy; ps_input output; output.screen_pos = mul(G_projection, float4(world_pos, 0, 1));