From f6e79d70735361438655f279c8699a786d25458c Mon Sep 17 00:00:00 2001 From: Lauren Budorick Date: Thu, 27 Apr 2017 15:56:55 -0700 Subject: [core] Render fill-extrusion layers (#8431) --- scripts/generate-shaders.js | 3 +++ scripts/style-code.js | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'scripts') diff --git a/scripts/generate-shaders.js b/scripts/generate-shaders.js index cffe9d3854..2f1f4c2f9c 100755 --- a/scripts/generate-shaders.js +++ b/scripts/generate-shaders.js @@ -47,7 +47,10 @@ ${fragmentPrelude} 'circle', 'collision_box', 'debug', + 'extrusion_texture', 'fill', + 'fill_extrusion', + 'fill_extrusion_pattern', 'fill_outline', 'fill_outline_pattern', 'fill_pattern', diff --git a/scripts/style-code.js b/scripts/style-code.js index 156934a240..70914c5fb6 100644 --- a/scripts/style-code.js +++ b/scripts/style-code.js @@ -22,6 +22,10 @@ global.snakeCaseUpper = function snakeCaseUpper(str) { return str.replace(/-/g, "_").toUpperCase(); }; +global.unhyphenate = function (str) { + return str.replace(/-/g, " "); +}; + global.writeIfModified = function(filename, newContent) { try { const oldContent = fs.readFileSync(filename, 'utf8'); -- cgit v1.2.1