webgl-raub
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -217,4 +217,15 @@ 'use strict'; | ||
const _shaderSource = gl.shaderSource; | ||
gl.shaderSource = (shader, source) => _shaderSource(enforceId(shader), source); | ||
gl._shaderSource = gl.shaderSource; | ||
gl.shaderSource = (shaderId, code) => gl._shaderSource( | ||
enforceId(shaderId), | ||
code.replace( | ||
/^\s*?(#version|precision).*?$/gm, '' | ||
).replace( | ||
/^/, '#version 120\n' | ||
).replace( | ||
/gl_FragDepthEXT/g, 'gl_FragDepth' | ||
).replace( | ||
'#extension GL_EXT_frag_depth : enable', '' | ||
) | ||
); | ||
@@ -221,0 +232,0 @@ |
{ | ||
"author": "Luis Blanco <luisblanco1337@gmail.com>", | ||
"name": "webgl-raub", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "WebGL for Node.js", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
25182
513