public void ApplyInstanceContants() { PositionConstant.Set(Position); SizeConstant.Set(Size); TexelOffsetConstant.Set(TexelOffset); ColorConstant.Set(Color); FadeConstant.Set(Fade); Fade2Constant.Set(Fade2); MainTextureConstant.Set(MainTexture); MainTexture2Constant.Set(MainTexture2); MainTexture3Constant.Set(MainTexture3); }
public void ApplyInstanceContants(InstanceObjectMesh instanceObjectMesh) { if (ApplyInstanceObjectMeshCallback != null) { ApplyInstanceObjectMeshCallback(this, instanceObjectMesh); } PositionConstant.Set(Position); SizeConstant.Set(Size); TexelOffsetConstant.Set(TexelOffset); ColorConstant.Set(Color); FadeConstant.Set(Fade); Fade2Constant.Set(Fade2); MainTextureConstant.Set(MainTexture); MainTexture2Constant.Set(MainTexture2); MainTexture3Constant.Set(MainTexture3); }