MCPcopy Index your code
hub / github.com/plotly/plotly.js / createShader

Function createShader

stackgl_modules/index.js:19460–19468  ·  view source on GitHub ↗
(gl, src)

Source from the content-addressed store, hash-verified

19458 }
19459
19460function createShader(gl, src) {
19461 var shader = createShaderWrapper(gl, src)
19462 var attr = shader.attributes
19463 attr.position.location = 0
19464 attr.color.location = 1
19465 attr.glyph.location = 2
19466 attr.id.location = 3
19467 return shader
19468}
19469
19470exports.createPerspective = function(gl) {
19471 return createShader(gl, perspective)

Callers 15

createBackgroundCubeFunction · 0.85
createLinesFunction · 0.85
index.jsFile · 0.85
createTextSpritesFunction · 0.85
createMeshShaderFunction · 0.85
createPickShaderFunction · 0.85
createErrorBarsFunction · 0.85
createLinePlotFunction · 0.85
createWireShaderFunction · 0.85
createPointShaderFunction · 0.85
createPointPickShaderFunction · 0.85
createContourShaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…