When a texture is intermixed with materials, it is of good quality, what about that shader without the texture?
I have discarded the textures because our artist refuses to share his.
Can I use that book's shader but still having good quality rendering?
//Sampler
sampler DiffuseSampler = sampler_state
{
Texture = (texDiffuse);
MinFilter = Linear; MagFilter = Linear; MipFilter = Linear;
AddressU = Wrap; AddressV = Wrap; AddressW = Wrap;
MaxAnisotropy = 16;
};
//Pixel Shader
float4 ps_lighting(VS_OUTPUT IN) : COLOR0
{
// float4 color = tex2D(DiffuseSampler, IN.tex0);
//return color * IN.shade;
float3 texColor = tex2D(DiffuseSampler, IN.tex0).rgb;
float3 diffuse = IN.color.rgb;// * texColor;
//return float4(diffuse + spec.rgb, IN.color.a);
return float4(diffuse, IN.color.a);
}
Thanks
Jack