MCPcopy Index your code
hub / github.com/processing/processing / set

Method set

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

@webref rendering:shaders @brief 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

388 * @param x first component of the variable to modify
389 */
390 public void set(String name, int x) {
391 setUniformImpl(name, UniformValue.INT1, new int[] { x });
392 }
393
394 /**
395 * @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