hi, u gonna need more then that:
so line 25
return float4 (rgb.xyz,body)
“body” is player atm so u have on output vector for rgb color and u add player as alpha to it. So if u change player texture on depth map it’s not gonna help much since u gonna write it to alpha
do a copy of ur shader and change
float body = PlayerTexture.Sample(linearSampler,map).r;
return float4 (rgb.xyz,body);
to
float4 body = PlayerTexture.Sample(linearSampler,map);
return body;
that’s gonna give u back whatever texture u put in there aligned to color