static Shader FromFile(string file)
Loads a shader from a precompiled StereoKit Shader
(.sks) file! HLSL files can be compiled using the skshaderc tool
included in the NuGet package. This should be taken care of by
MsBuild automatically, but you may need to ensure your HLSL file
|string file||Path to a precompiled StereoKit Shader file! If no .sks extension is part of this path, StereoKit will automatically add it and check that first.|
|RETURNS: Shader||A shader from the given file, or null if it failed to load/compile.|
Found an issue with these docs, or have some additional questions? Create an Issue on Github!