MCPcopy Index your code
hub / github.com/benfry/processing4 / set

Method set

core/src/processing/opengl/PShader.java:399–401  ·  view source on GitHub ↗

Sets the uniform variables inside the shader to modify the effect while the program is running. @webref rendering:shaders @webBrief Sets a variable within the shader @param name the name of the uniform variable to modify @param x first component of the variable to modify

(String name, int x)

Source from the content-addressed store, hash-verified

397 * @param x first component of the variable to modify
398 */
399 public void set(String name, int x) {
400 setUniformImpl(name, UniformValue.INT1, new int[] { x });
401 }
402
403 /**
404 * @param y second component of the variable to modify. The variable has to be declared with an array/vector type in the shader (i.e.: int[2], vec2)

Callers

nothing calls this directly

Calls 2

setUniformImplMethod · 0.95
showWarningMethod · 0.95

Tested by

no test coverage detected