|
|
我想要增加Shadow map的精?度(藉由定?在shader code的sampler的statement)
我???要如何定?"MinFilter" , "MagFilter" and "MipFilter"?(才??@得最佳的精?度)
使用"anisotropic filtering"??黾?hadow map的精?度??
如果要使用"anisotropic filtering"的?,在sampler中的statement要如何?⑹?
texture ShadowMap0;
sampler ShadowMapSamp0 = sampler_state
{
Texture = <ShadowMap0>;
MinFilter = LINEAR;
MagFilter = LINEAR;
MipFilter = NONE;
AddressU = Clamp;
AddressV = Clamp;
}; |
|