@@ -739,8 +739,8 @@ function material(p5, fn) {
739739 * @param {Object } hooks An object specifying p5.strands hooks in GLSL.
740740 * @returns {p5.Shader } The material shader
741741 */
742- fn . buildFilterShader = function ( callback ) {
743- return this . baseFilterShader ( ) . modify ( callback ) ;
742+ fn . buildFilterShader = function ( callback , scope ) {
743+ return this . baseFilterShader ( ) . modify ( callback , scope ) ;
744744 } ;
745745
746746 /**
@@ -1567,8 +1567,8 @@ function material(p5, fn) {
15671567 * @param {Object } hooks An object specifying p5.strands hooks in GLSL.
15681568 * @returns {p5.Shader } The material shader.
15691569 */
1570- fn . buildMaterialShader = function ( cb ) {
1571- return this . baseMaterialShader ( ) . modify ( cb ) ;
1570+ fn . buildMaterialShader = function ( cb , scope ) {
1571+ return this . baseMaterialShader ( ) . modify ( cb , scope ) ;
15721572 } ;
15731573
15741574 /**
@@ -1783,8 +1783,8 @@ function material(p5, fn) {
17831783 * @param {Object } hooks An object specifying p5.strands hooks in GLSL.
17841784 * @returns {p5.Shader } The normal shader.
17851785 */
1786- fn . buildNormalShader = function ( cb ) {
1787- return this . baseNormalShader ( ) . modify ( cb ) ;
1786+ fn . buildNormalShader = function ( cb , scope ) {
1787+ return this . baseNormalShader ( ) . modify ( cb , scope ) ;
17881788 } ;
17891789
17901790 /**
@@ -1947,8 +1947,8 @@ function material(p5, fn) {
19471947 * @param {Object } hooks An object specifying p5.strands hooks in GLSL.
19481948 * @returns {p5.Shader } The color shader.
19491949 */
1950- fn . buildColorShader = function ( cb ) {
1951- return this . baseColorShader ( ) . modify ( cb ) ;
1950+ fn . buildColorShader = function ( cb , scope ) {
1951+ return this . baseColorShader ( ) . modify ( cb , scope ) ;
19521952 } ;
19531953
19541954 /**
@@ -2202,8 +2202,8 @@ function material(p5, fn) {
22022202 * @param {Object } hooks An object specifying p5.strands hooks in GLSL.
22032203 * @returns {p5.Shader } The stroke shader.
22042204 */
2205- fn . buildStrokeShader = function ( cb ) {
2206- return this . baseStrokeShader ( ) . modify ( cb ) ;
2205+ fn . buildStrokeShader = function ( cb , scope ) {
2206+ return this . baseStrokeShader ( ) . modify ( cb , scope ) ;
22072207 } ;
22082208
22092209 /**
0 commit comments