Added shader compilation function for kfx.