From 8b28b6ab6b5735a51b15d76baae284658a633c9d Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 7 Jun 2016 14:43:59 +0300 Subject: [core] Renamed OutlineShader's color uniform Part of https://github.com/mapbox/mapbox-gl-shaders/issues/8. --- scripts/build-shaders.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts/build-shaders.py') diff --git a/scripts/build-shaders.py b/scripts/build-shaders.py index 60e8552123..d94a8cdd58 100755 --- a/scripts/build-shaders.py +++ b/scripts/build-shaders.py @@ -28,7 +28,7 @@ def replace_uniform_pragmas(line): if pragma_mapbox_regex.match(line): params = line.split() u_method = params[2] - u_name = "color" if color_regex.match(params[3]) else params[3] + u_name = params[3] u_precision = params[4] u_type = "vec4" if color_regex.match(u_name) else "float" if u_method == "define": @@ -37,10 +37,9 @@ def replace_uniform_pragmas(line): type_ = u_type, name = u_name) else: - return """ {precision} {type_} {glsl_name} = u_{name};""".format( + return """ {precision} {type_} {name} = u_{name};""".format( precision = u_precision, type_ = u_type, - glsl_name = params[3], name = u_name) else: return line -- cgit v1.2.1