- Edited
vfung Assign a new shader material to the object, create a new shader for that material and with that shader selected paste the code into the shader editor. The official docs cover it in detail: https://docs.godotengine.org/en/stable/tutorials/shaders/shader_materials.html