Fix shader parameter issues
Merge pull request #1217 from fr500/patch-1

Fix shader parameter issues