Shader code bug fix.

Shader code fixed and otimized. New samples added.