MCPcopy Create free account
hub / github.com/benfry/processing4 / loadShader

Method loadShader

core/src/processing/core/PGraphics.java:1946–1949  ·  view source on GitHub ↗

Loads a shader into the PShader object. The shader file must be loaded in the sketch's "data" folder/directory to load correctly. Shaders are compatible with the P2D and P3D renderers, but not with the default renderer. Alternatively, the file maybe be loaded from anywhere on the

(String fragFilename)

Source from the content-addressed store, hash-verified

1944 * @param fragFilename name of fragment shader file
1945 */
1946 public PShader loadShader(String fragFilename) {
1947 showMissingWarning("loadShader");
1948 return null;
1949 }
1950
1951
1952 /**

Callers

nothing calls this directly

Calls 1

showMissingWarningMethod · 0.95

Tested by

no test coverage detected