UNPKG
super-three
Version:
latest (0.184.0)
0.184.0
0.181.0
0.179.0
0.177.0
0.176.0
0.175.0
0.173.5
0.173.4
0.173.3
0.173.2
0.173.1
0.173.0
0.172.0
0.171.0
0.170.1
0.170.0
0.169.1
0.169.0
0.168.0
0.167.0
0.165.0
0.164.0
0.163.0
0.162.0
0.161.0
0.160.1
0.160.0
0.158.0
0.157.1
0.157.0
0.156.0
0.155.0
0.154.1
0.154.0
0.152.0
0.147.1
0.147.0
0.144.0
0.141.0
0.137.0
0.136.1
0.136.0
0.135.0
0.133.5
0.133.4
0.133.3
0.133.2
0.133.1
0.133.0
0.128.3
0.128.2
0.128.1
0.128.0
0.125.1
0.125.0
0.124.2
0.124.1
0.124.0
0.123.1
0.123.0
0.122.0
0.120.6
0.120.5
0.120.4
0.120.3
0.120.2
0.120.1
0.120.0
0.119.0
0.118.0
0.116.0
0.115.1
0.115.0
0.113.0
0.112.0
0.111.6
0.111.5
0.111.4
0.111.3
0.111.2
0.111.1
0.111.0
0.109.0
0.108.0
0.105.2
0.105.1
0.102.2
0.102.1
0.101.0
0.100.0
JavaScript 3D library
threejs.org
supermedium/three.js
super-three
/
src
/
renderers
/
webgl
/
WebGLShader.js
13 lines
(7 loc)
•
196 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
function
WebGLShader
(
gl,
type
,
string
) {
const
shader = gl.
createShader
(
type
); gl.
shaderSource
( shader,
string
); gl.
compileShader
( shader );
return
shader; }
export
{
WebGLShader
};