質問
私はスカイボックスの縁に現れる可視線に問題がある。
http://project-vanquish.co.cc/index.phpする < - ショーの問題
誰もが、彼らが登場している理由についてどのような考えを持っていますか?テクスチャは、白エッジを持っていません。
のコードブロックをレンダリング
public override void Render(GraphicsDevice device)
{
device.DepthStencilState = DepthStencilState.None;
for (int i = 0; i < 6; i++)
{
this.sides[i].Position = CameraManager.ActiveCamera.Position + this.offsets[i];
EffectManager.ActiveShader.SetParameters(this.sides[i]);
foreach (EffectPass pass in EffectManager.ActiveShader.Effect.CurrentTechnique.Passes)
{
pass.Apply();
this.sides[i].Render(device);
}
}
device.DepthStencilState = DepthStencilState.Default;
}
解決
あなたのSamplerStateを保管します:
SamplerState samplerState = device.SamplerStates[0];
次に、AnisotropicClamp(またはお好み)に設定します:
device.SamplerStates[0] = SamplerState.AnisotropicClamp;
その後、リセット、レンダリングして設定した後:
device.SamplerStates[0] = samplerState;
所属していません StackOverflow