Shaders::add()
This works in a project you run on your own computer, but not in the examples you can start here in the browser. There is no file system, no video encoder and no OpenGL behind a web page, so calling it there tells you as much and does nothing.
Adds a shader. If a shader with the given name already exists, that one is returned instead.
Syntax
Java
.add(name, fragmentShaderPath, vertexShaderPath)
Parameters
| Name | Data Type | Description |
|---|---|---|
| name | String | a unique name |
| fragmentShaderPath | String | the path to the fragment shader |
| vertexShaderPath | String | the path to the vertex shader, may be null |
Return
Shader