Здравствуйте
Можно ли как-то избавиться от такой неприятности на скрине (видно круги когда картинку смотреть в полном размере)
Текстура также в аттаче
Код AS3:
gridLineHorTextureMaterial=new TextureMaterial(textureHor,true,false,true); // смягченная, не повторяется, она же mipMap
gridLineHorTextureMaterial.bothSides=true;
gridLineHorTextureMaterial.shadowMethod=new FilteredShadowMapMethod(lightsModel.lights[0] as DirectionalLight);
gridLineHorTextureMaterial.lightPicker = lightsModel.lightPicker;
// создание полосок
for(j=0;j<totalHorizontalLines;j++)
{
hBox=new Mesh(horLineGeometry,gridLineHorTextureMaterial);
hBox.position=new Vector3D(-2048,-maxLength/2+(gridData.boxWidth+gridData.ceilWidth)*j+gridData.boxWidth+offset,-gridData.boxDepthHor);
if(Settings.useTextureUVOffset)
{
hBox.subMeshes[0].offsetU -= Math.random()/20;
}
gridContainer.addChild(hBox);
hBox.name="hBox_"+j+"_";
objectsHor.push(hBox);
hBox=new Mesh(horLineGeometry,gridLineHorTextureMaterial);
hBox.position=new Vector3D(-1024,-maxLength/2+(gridData.boxWidth+gridData.ceilWidth)*j+gridData.boxWidth+offset,-gridData.boxDepthHor);
if(Settings.useTextureUVOffset)
{
hBox.subMeshes[0].offsetU -= Math.random()/20;
}
gridContainer.addChild(hBox);
hBox.name="hBox_"+j+"_";
objectsHor.push(hBox);
hBox=new Mesh(horLineGeometry,gridLineHorTextureMaterial);
hBox.position=new Vector3D(0,-maxLength/2+(gridData.boxWidth+gridData.ceilWidth)*j+gridData.boxWidth+offset,-gridData.boxDepthHor);
if(Settings.useTextureUVOffset)
{
hBox.subMeshes[0].offsetU += Math.random()/20;
}
gridContainer.addChild(hBox);
hBox.name="hBox_"+j+"__";
objectsHor.push(hBox);
hBox=new Mesh(horLineGeometry,gridLineHorTextureMaterial);
hBox.position=new Vector3D(1024,-maxLength/2+(gridData.boxWidth+gridData.ceilWidth)*j+gridData.boxWidth+offset,-gridData.boxDepthHor);
if(Settings.useTextureUVOffset)
{
hBox.subMeshes[0].offsetU -= Math.random()/20;
}
gridContainer.addChild(hBox);
hBox.name="hBox_"+j+"___";
objectsHor.push(hBox);
hBox=new Mesh(horLineGeometry,gridLineHorTextureMaterial);
hBox.position=new Vector3D(2048,-maxLength/2+(gridData.boxWidth+gridData.ceilWidth)*j+gridData.boxWidth+offset,-gridData.boxDepthHor);
if(Settings.useTextureUVOffset)
{
hBox.subMeshes[0].offsetU += Math.random()/20;
}
gridContainer.addChild(hBox);
hBox.name="hBox_"+j+"____";
objectsHor.push(hBox);
}