{"bugs":{"url":"https://github.com/mikolalysenko/glsl-exports/issues"},"dist":{"shasum":"ef700495ef1071a06271262b7fc6f121221fe2ea","tarball":"https://registry.npmjs.org/glsl-exports/-/glsl-exports-0.0.0.tgz","integrity":"sha512-rO8YOfcxMoKjTTaBQHyxdzkgkveuPC/Hyi0MXYuY4m3IMjvnlv2FonYPoZAocJv40QygzVW1/BBpGGDOO/4h0w==","signatures":[{"sig":"MEQCIB6uSYRTAWH+fygQ7nNfJKfTpnYGlUpz3ftclNoCw2AXAiB9SsP9Ia1t8K7ipqhWSN2a2eDXA/vdVcnUh+QtKpAmww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"glsl-exports","_from":".","author":{"name":"Mikola Lysenko"},"readme":"glsl-exports\n============\nFinds all the uniforms and attributes for a fragment shader.\n\n## Example\n\n```javascript\nvar result = glslGlobals([\n  \"uniform float a;\",\n  \"attribute vec3 x, y, z;\",\n  \"void main() {\",\n    \"int a = 1;\",\n    \"gl_FragColor = vec4(1, a, 0, 1);\",\n  \"}\"\n].join(\"\\n\"))\n\nconsole.log(result)\n```\n\nPrints out:\n\n```javascript\n{\n  uniforms: { \"a\": \"float\" },\n  attributes: {\n    \"x\": \"vec3\",\n    \"y\": \"vec3\",\n    \"z\": \"vec3\"\n  }\n}\n```\n\n## Install\n\n    npm install glsl-exports\n    \n## `require(\"glsl-exports\")(shader_source)`\nFinds all the uniforms and attributes\n\n* `shader_source` is the source code to a vertex or fragment shader\n\n**Returns** An object containing two properties\n\n* `uniforms` a list of all the uniform variables and their data types\n* `attributes` a list of all attribute variables in the shader and their data types\n\n## Credits\n(c) 2013 Mikola Lysenko. MIT License","gitHead":"d3d567310898381ce1086feb36ed1bb5afdd6f3d","license":"MIT","scripts":{"test":"tap test/*.js"},"_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"keywords":["glsl","uniform","attribute","variable","declaration","parser"],"repository":{"url":"git://github.com/mikolalysenko/glsl-exports.git","type":"git"},"_npmVersion":"1.2.24","description":"Find all uniforms and attributes in a GLSL shader","directories":{"test":"test"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"dependencies":{"through":"~2.3.4","glsl-parser":"~0.0.5","glsl-tokenizer":"~0.0.8"},"readmeFilename":"README.md","devDependencies":{"tape":"~1.0.4"},"_id":"glsl-exports@0.0.0","version":"0.0.0"}