Install a copy of glslc
you can get this from https://github.com/google/shaderc google's shaderc repository.
Clone a copy of your preferred leaked NMS shaders, for this gist I'm using the ones at https://github.com/EthanRDoesMC/NMS-ShaderCode
The repository contains the build targets (the .BIN files in the top level) and the actual shaders (the glsl header files in the code
directory)
When compiling a shader you'll need to know what target you're building. For example if you were to edit the Binoculars, the target in UI.SHADER.BIN
for binoculars is: