if you want to use optifine for shaders, you need to go into your minecraft folder and create a new folder called "shaderpacks"
Then install a shader and drag the .zip file into the new "shaderpacks" folder
You can then enable or disable shaders from the ingame settings menu.