mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-08-30 21:37:25 +00:00
67 lines
3.5 KiB
Markdown
67 lines
3.5 KiB
Markdown
# Minecraft GLSL Shaders
|
|
## vscode-mc-shader
|
|
|
|
[](https://marketplace.visualstudio.com/items?itemName=strum355.vscode-mc-shader) [](https://marketplace.visualstudio.com/items?itemName=strum355.vscode-mc-shader)
|
|
[](https://github.com/Strum355/vscode-mc-shader)
|
|
[](https://github.com/Strum355/vscode-mc-shader/issues)
|
|
[](https://cloud.drone.io/Strum355/vscode-mc-shader)
|
|
|
|
<!-- It doesnt seem to like these :<
|
|
[](https://ci.netsoc.co/Strum355/vscode-mc-shader)
|
|
-->
|
|
|
|
VSCode-mc-shader is a [Visual Studio Code](https://code.visualstudio.com/) extension for developing Minecraft GLSL Shaders for [Optifine](http://optifine.net). It currently provides linting and syntax highlighting (by stef-levesque/vscode-shader dependency).
|
|
|
|
<img src="https://github.com/Strum355/vscode-mc-shader/raw/master/logo.png" width="20%" height="20%">
|
|
|
|
## Features
|
|
|
|
- Linting
|
|
- Syntax highlighting (by extension dependency)
|
|
- Support for `#include` directives
|
|
- Auto-complete prompts (incomplete and rough)
|
|
|
|
## Installation (assumes installing from VSCode extension tab)
|
|
|
|
- After reloading, open a shaderpack's folder.
|
|
- You should be prompted to set your shaderpacks folder e.g. `"mcglsl.shaderpacksPath": "C:/Users/Noah/AppData/Roaming/.minecraft/shaderpacks"`
|
|
- You should then be prompted saying `glslangValidator` isn't installed. Hit the download button and wait for a notification saying that it's been installed.
|
|
- You should now be good to go!
|
|
|
|
## Requirements
|
|
|
|
- Visual Studio Code (v1.23.0 or higher - minimum requirement untested).
|
|
- The [Shader languages support for VS Code](https://marketplace.visualstudio.com/items?itemName=slevesque.shader) extension. This should automatically install when you install this extension.
|
|
- That the shader(s) you're editing are in the `shaderpacks` folder in `.minecraft`.
|
|
- That you've only one shader folder open. Multiple workspaces aren't currently supported.
|
|
- The [OpenGL / OpenGL ES Reference Compiler](https://github.com/KhronosGroup/glslang). The extension will give you an option to download it and update your settings automatically.
|
|
|
|
## Extension Settings
|
|
|
|
| Option Name | Data Type | Description | Default Value |
|
|
| ----------- | --------- | ----------- | ------------- |
|
|
| `mcglsl.glslangValidatorPath` | string | The path to the glslangValidator executable. | In your `PATH`.|
|
|
|
|
## Contributing
|
|
|
|
Please see [CONTRIBUTING.md](https://github.com/Strum355/vscode-mc-shader/blob/master/CONTRIBUTING.md).
|
|
|
|
## Planned
|
|
|
|
- Multi-workspaces (currently only one is supported and using multiple is very undefined behaviour)
|
|
- Warnings for unused uniforms/varyings
|
|
- Some cool `DRAWBUFFERS` stuff
|
|
|
|
Got a feature request? Chuck it into an Issue!
|
|
|
|
## Known Issues
|
|
|
|
Check the issues on Github [here](https://github.com/Strum355/vscode-mc-shader/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug).
|
|
|
|
## Release Notes
|
|
|
|
Check [CHANGELOG.md](https://github.com/Strum355/vscode-mc-shader/blob/master/CHANGELOG.md).
|
|
|
|
## License
|
|
|
|
This code is released under the [MIT License](https://github.com/Strum355/vscode-mc-shader/blob/master/LICENSE). Copyright (c) 2018 Noah Santschi-Cooney
|