Shader replacement core functionality.