Exemple #1
0
 public void ApplyInstanceContants()
 {
     PositionConstant.Set(Position); SizeConstant.Set(Size); PositionUVConstant.Set(PositionUV); SizeUVConstant.Set(SizeUV); TexelOffsetConstant.Set(TexelOffset); ColorConstant.Set(Color); DiffuseTextureConstant.Set(DiffuseTexture);
 }
Exemple #2
0
 public void ApplyInstanceContants(InstanceObjectMesh instanceObjectMesh)
 {
     if (ApplyInstanceObjectMeshCallback != null)
     {
         ApplyInstanceObjectMeshCallback(this, instanceObjectMesh);
     }
     PositionConstant.Set(Position); SizeConstant.Set(Size); PositionUVConstant.Set(PositionUV); SizeUVConstant.Set(SizeUV); TexelOffsetConstant.Set(TexelOffset); ColorConstant.Set(Color); DiffuseTextureConstant.Set(DiffuseTexture);
 }