From 54c7674f9c748d49de820750a347fbb32f53d35e Mon Sep 17 00:00:00 2001 From: Adi-Mora Date: Thu, 22 Feb 2018 12:09:07 +0000 Subject: [PATCH] Adds PIXI.Shader constructor args precision & attributeLocations --- src/pixi/core/Shader.hx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pixi/core/Shader.hx b/src/pixi/core/Shader.hx index 84532579..90589413 100755 --- a/src/pixi/core/Shader.hx +++ b/src/pixi/core/Shader.hx @@ -1,6 +1,7 @@ package pixi.core; import haxe.extern.EitherType; + @:native("PIXI.Shader") extern class Shader { @@ -14,8 +15,10 @@ extern class Shader { * @param gl {WebGLRenderingContext} The current WebGL rendering context * @param vertexSrc {String|Array} The vertex shader source as an array of strings. * @param fragmentSrc {String|Array} The fragment shader source as an array of strings. + * @param {object} [attributeLocations] - A key value pair showing which location eact attribute should sit. e.g. {position:0, uvs:1}. + * @param {String} [precision] - The float precision of the shader. Options are 'lowp', 'mediump' or 'highp'. */ - function new(gl:Dynamic, vertexSrc:EitherType>, framentSrc:EitherType>); + function new(gl:Dynamic, vertexSrc:EitherType>, framentSrc:EitherType>, ?attributeLocations:Dynamic, ?precision:String); /** *