Merging logic on the shader in place but not working yet.