Added shader functions

Fixed shader compilation issue