Well it's something ig
This commit is contained in:
@@ -116,6 +116,10 @@ float3 Shade(VS_OUTPUT input)
|
||||
}
|
||||
|
||||
float4 PS(VS_OUTPUT input) : SV_TARGET{
|
||||
//Check if gDiffuseMap sample has a valid value, otherwise render red
|
||||
if (gDiffuseMap.Sample(gSampleState, input.TexCoord).a == 0.f)
|
||||
return float4(1.f, 0.f, 0.f, 1.f);
|
||||
|
||||
return gDiffuseMap.Sample(gSampleState, input.TexCoord);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user