gofmt code, remove code duplication in shaders.go