We determined the law of shock wave refraction for a class of extended interfaces with continuously variable gradients. When the interface is extended or when the gas parameters vary fast enough, the interface cannot be considered as sharp or smooth and the existing calculation methods cannot be applied. The expressions we derived are general enough to cover all three types of the interface and are valid for any law of continuously varying parameters. We apply the equations to the case of exponentially increasing temperature on the boundary and compare the results for all three types of interfaces. We have demonstrated that the type of interface can increase or inhibit the shock wave refraction. Our findings can be helpful in understanding the results obtained in energy deposition experiments as well as for controlling the shock-plasma interaction in other settings.