Fixing compilation issues.
Creating intermetiate variable at Shader,
otherwise file wouldn't be properly loaded.

Signed-off-by: Rafael Rondao <rafael.rondao@gmail.com>