Relay dimming

is there way to dim the physical switches without using additional hardware such as a shelly dimmer etc