摘要:
...
DXManager.cs中 :
public static void SetBlend(bool value, float rate = 1F)方法后面加入:
//纹理过滤
Device.SetSamplerState(0, SamplerState.ElementIndex, TextureFilter.GaussianQuad);//使用4个样本的高斯滤波器
//纹理阶段状态
Device.SetTextureStageState(0, TextureStage.ColorOperation, TextureOperation.Modulate2X);//2倍高清效果,最高4倍但发光会出现曝光,
Device.SetTextureStageState(0, TextureStage.ColorArg0, TextureArgument.Texture);
Device.SetTextureStageState(0, TextureStage.ColorArg1, TextureArgument.Texture);
Device.SetTextureStageState(0, TextureStage.ColorArg2, TextureArgument.Texture);
补充: Device.SetTextureStageState(0, TextureStage.ColorOperation, 20);
加这句可以避免4x曝光~
还没有评论,来说两句吧...