A language server and Visual Studio Code extension for Minecraft GLSL Shaders
Find a file
2018-07-20 22:05:59 +01:00
.vscode Moved config back to lang server. Temp removed comment checking (it was bad anyways). Only adding in extension if it doesnt already exist. Fixed token replacer 2018-07-14 19:34:04 +01:00
client Added download prompt to download glslangValdiator 2018-07-16 17:49:55 +01:00
server Added postError function for short error notifications. Using existsSync to check if binary exists. Seperated onConfigChange into different functions. lineNum -2 for windows instead of -1 for linux, such a pain. 2018-07-20 22:05:59 +01:00
.codeclimate.yml codeclimate config 2018-06-21 13:19:46 +01:00
.drone.yml Testing on 7.9, what vscode actually uses 2018-06-24 02:10:11 +01:00
.gitignore Shows error if glslangValidator not found. Also made script to download it 2018-06-15 18:40:01 +01:00
CHANGELOG.md Moved config back to lang server. Temp removed comment checking (it was bad anyways). Only adding in extension if it doesnt already exist. Fixed token replacer 2018-07-14 19:34:04 +01:00
CONTRIBUTING.md Some exported functions for later testing 2018-07-12 18:42:07 +01:00
LICENSE Initial commit 2018-05-12 15:27:37 +01:00
logo.png Hopefully the last time i work the logo : ) 2018-07-04 01:27:43 +01:00
package-lock.json Fixed tslint missing 2018-06-13 20:59:28 +01:00
package.json Moved config back to lang server. Temp removed comment checking (it was bad anyways). Only adding in extension if it doesnt already exist. Fixed token replacer 2018-07-14 19:34:04 +01:00
README.md Moved config back to lang server. Temp removed comment checking (it was bad anyways). Only adding in extension if it doesnt already exist. Fixed token replacer 2018-07-14 19:34:04 +01:00
setup.py Added download prompt to download glslangValdiator 2018-07-16 17:49:55 +01:00
shaders.py Some basic completion provider. Need to go through all the options and tweak them 2018-06-04 20:25:57 +01:00
tslint.json Added IncludeObj type alias 2018-07-14 15:58:06 +01:00

vscode-mc-shader

CI Issues license Maintainability

VSCode-MC-Shader is a Visual Studio Code extension for developing Minecraft GLSL Shaders for Optifine. It currently provides linting and syntax highlighting (by stef-levesque/vscode-shader dependency).

Features

  • Linting (unpolished)
  • Syntax highlighting (by extension dependency)
  • Support for #includes directives
  • Auto-complete prompts (incomplete)

Planned

  • Warnings for unused uniforms/varyings
  • Some cool DRAWBUFFERS stuff

Got a feature request? Chuck it into an Issue!

Requirements

  • Visual Studio Code (v1.17.0 or higher - minimum requirement untested)
  • The Shader languages support for VS Code extension. This should automatically install when you install this extension.
  • That the shader(s) you're editing are in the shaderpacks folder in .minecraft.
  • The OpenGL / OpenGL ES Reference Compiler (for convenience, put it in your PATH, this is the assumed location if not specified). If, for some reason, you're using MacOS, there are no pre-compiled binaries of this.
  • [MacOS] Not MacOS. Not that you're making MC Shaders on/for MacOS anyways...right?

Extension Settings

Option Name Data Type Description Default Value
mcglsl.glslangValidatorPath string The path to the glslangValidator executable. In your PATH.
mcglsl.lintOnType bool Whether or not to lint while typing. Can decrease performance. false
mcglsl.shaderpacksPath string The path to the shaderpacks folder in your Minecraft installation folder. None

Contributing

Please see CONTRIBUTING.md.

Known Issues

I'll fill this in once this actually gets released.

Release Notes

None yet.

License

This code is released under the MIT License. Copyright (c) 2018 Noah Santschi-Cooney