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); }
public void ApplyInstanceContants() { PositionConstant.Set(Position); SizeConstant.Set(Size); PositionUVConstant.Set(PositionUV); SizeUVConstant.Set(SizeUV); TexelOffsetConstant.Set(TexelOffset); ColorConstant.Set(Color); DiffuseTextureConstant.Set(DiffuseTexture); }