partially written shader code