Missing shader files in git repo

Hi,

It seems that Engine/Shaders/Public directory is missing in Epic’s UE4 GitHub repository, so there are no *.ush files to be found anywhere. I checked both 4.17 and master branches. Is it intentional?

.ush is a new filetype for header files for custom shaders. The default shaders have a .usf file extension.

Yes, I am aware of this, but that doesn’t answer my question. :wink: Engine shaders (usf type) include ush files, for example if you look into Engine/Shaders/Private/BasePassPixelShader.usf, you can see lines like include “Common.ush” or include “BRDF.ush”, but I cannot find those headers. :slight_smile:

Was also wondering if USHs missing from git is intentional or not.

Ah yeah, I see what you mean now. The easiest way to find out is to just build it and see what happens.

.ush files are .ue4dependencies. They are downloaded by GitDependencies.exe (Setup.bat/.sh).

But that makes no sense, they are source files.
I think they just forgot to add them to the repo.

Yep. That’s probably because they’ve changed the root. Or due new extension of the files.
You could make a post on Answers under Bug Reports section.

I made an Answerhub post: