Passing parameters into shader programs