Allow resizing the image during conversion

This commit is contained in:
loki
2021-05-04 10:21:56 +02:00
parent 900d59b3ac
commit 1b7e103ef6
3 changed files with 15 additions and 57 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ struct PS_INPUT
//--------------------------------------------------------------------------------------
float PS(PS_INPUT frag_in) : SV_Target
{
float3 rgb = image.Load(int3(frag_in.pos.xy, 0)).rgb;
float3 rgb = image.Sample(def_sampler, frag_in.tex, 0).rgb;
float y = dot(color_vec_y.xyz, rgb) + color_vec_y.w;
return y;