我开始阅读The book of shader,我想在VsCode中开发一些东西。
我安装了这些扩展:
当我保存*.frag
文件时,我得到:
GLSL Lint: config.glslangValidatorPath is empty, please set it to the executable
和
Shaderc Lint: config.glslcPath is empty, please set it to the executable
我读过我必须使用glslang设置GLSLValidator路径,但我不明白怎么做。
有人能帮我吗?
VSCode插件GLSL lint没有着色器文件验证器,因此您必须自己下载并在VSCode中设置路径。
您可以为您的系统获取构建的二进制here。只需在系统上的某处下载并解压缩,然后在VSCode设置中设置路径:
并添加行config.glslangValidatorPath: /your/path/to/glslangbinary
。
希望它有所帮助。
最好,菲利普