From e6131e055c38087e8179e97fbee7590d6a306ad0 Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Tue, 26 Nov 2024 16:12:46 +0100 Subject: [PATCH] Add missing language-injection comments --- common/webapp/src/js/map/lowres/LowresVertexShader.js | 1 + common/webapp/src/js/skybox/SkyFragmentShader.js | 2 ++ common/webapp/src/js/skybox/SkyVertexShader.js | 2 ++ 3 files changed, 5 insertions(+) diff --git a/common/webapp/src/js/map/lowres/LowresVertexShader.js b/common/webapp/src/js/map/lowres/LowresVertexShader.js index 544047e6..da80223a 100644 --- a/common/webapp/src/js/map/lowres/LowresVertexShader.js +++ b/common/webapp/src/js/map/lowres/LowresVertexShader.js @@ -24,6 +24,7 @@ */ import { ShaderChunk } from 'three'; +// language=GLSL export const LOWRES_VERTEX_SHADER = ` #include ${ShaderChunk.logdepthbuf_pars_vertex} diff --git a/common/webapp/src/js/skybox/SkyFragmentShader.js b/common/webapp/src/js/skybox/SkyFragmentShader.js index d25a389a..6228ff2c 100644 --- a/common/webapp/src/js/skybox/SkyFragmentShader.js +++ b/common/webapp/src/js/skybox/SkyFragmentShader.js @@ -22,6 +22,8 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + +// language=GLSL export const SKY_FRAGMENT_SHADER = ` uniform float sunlightStrength; uniform float ambientLight; diff --git a/common/webapp/src/js/skybox/SkyVertexShader.js b/common/webapp/src/js/skybox/SkyVertexShader.js index 2c9cadb3..cda6d747 100644 --- a/common/webapp/src/js/skybox/SkyVertexShader.js +++ b/common/webapp/src/js/skybox/SkyVertexShader.js @@ -22,6 +22,8 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + +// language=GLSL export const SKY_VERTEX_SHADER = ` varying vec3 vPosition; void main() {