hallo
ich hab nen problem: 1.ich bekomm schon ewig kein mipmapping in mein shader
2.der shader reagiert auf sonne aber ich will das er nur auf lichter reagiert

Code:
 var d3d_automaterial=1;

bmap b_detail2=<detail1.tga>;//detail map textur

function init_detail_mapping
{
bmap_to_mipmap(mtl.skin1);
}

material InWall //textur im wad
{

event=init_detail_mapping;
skin1=b_detail2;
effect=
"
texture mtlSkin1;
technique detail_mapping
{
pass p0
{
texture[2]=<mtlSkin1>;

magfilter[2]=linear; //???
minfilter[2]=linear; //???
mipFilter[2]=linear; //mipmapping filter (funzt ni)

resultarg[0]=temp; // ???

colorop[1]=selectarg1; //beleuchtung
colorop[2]=addsigned; // add detail map to color map
colorarg1[3]=temp; // (shadow map + vertex lighting)
colorop[3]=modulate; // modulate (color map + detail map) with (shadow map + vertex lighting)

texcoordindex[2]=1;
texturetransformflags[2]=count2;
texturetransform[2]={4.0,0.0,0.0,0.0, // detail map u scale
0.0,4.0,0.0,0.0, // detail map v scale
0.0,0.0,0.0,0.0,
0.0,0.0,0.0,0.0};

}
}
";
}




A6 Commercial 6.50.6