I noticed that when I paint anything on my sculpt and then switch to render mode, the paint doesn't show up. I use Cycles as my render engine. Additionally, I can only paint in the solid preview; painting in any other mode doesn't present the paint on the sculpt. Is there any way to make the paint painted in texture paint mode to show up in render mode? Sorry if this question sounds dumb, I am very new to Blender.
EDIT: So I think I might've figured it out. I did a test paint on the object and went to the shading workspace. I added the image texture node and played around with the connection things, and I found out that connecting the color under the image texture node to base color under the other node, it makes the texture paint appear in the final render.