1
Support / Re: ShadowHelper problems
« on: February 13, 2017, 05:39:56 pm »
Thankyou very much i understand now.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
shader.setStaticUniform("map0", 0);
shader.setStaticUniform("map1", 1);
shader.setStaticUniform("map2", 2);
shader.setStaticUniform("map3", 3);
shader.setStaticUniform("splatTransform", new Matrix());
public GProp duplicate(){
Object3D[] f=new Object3D[s+1];
f[0]=new Object3D(data[0],true);//with true or false the result its the same
f[0].setName(data[0].getName()+":"+f[0].getID());
f[0].compile();
if(s==0){return new GProp(f);}
f[1]=new Object3D(data[1],true);//with true or false the result its the same
f[1].setName(data[1].getName()+":"+f[1].getID());
f[1].compile();
return new GProp(f);
}
public void setSkinState(GMosaic msc, String alias, Object3D obj){//
if(msc==null){return;}
int index=msc.existAlias(alias);
if(index>msc.getMax()){return;}
int x=index%msc.getGWidth();
int y=index/msc.getGWidth();
float u=0.249f;//msc.getTWidth();
obj.setTexture(msc.getName());
Matrix texMat=new Matrix();
texMat.scalarMul(u);
texMat.translate(u*x, u*y, 0);
obj.setTextureMatrix(texMat);
}