@@ -732,15 +732,17 @@ function material(p5, fn) {
732732 * @beta
733733 * @submodule p5.strands
734734 * @param {Function } callback A function building a p5.strands shader.
735+ * @param {Object } [scope] An optional scope object passed to .modify().
735736 * @returns {p5.Shader } The material shader
736737 */
737738 /**
738739 * @method buildFilterShader
739740 * @param {Object } hooks An object specifying p5.strands hooks in GLSL.
741+ * @param {Object } [scope] An optional scope object passed to .modify().
740742 * @returns {p5.Shader } The material shader
741743 */
742- fn . buildFilterShader = function ( callback ) {
743- return this . baseFilterShader ( ) . modify ( callback ) ;
744+ fn . buildFilterShader = function ( callback , scope ) {
745+ return this . baseFilterShader ( ) . modify ( callback , scope ) ;
744746 } ;
745747
746748 /**
@@ -1560,15 +1562,17 @@ function material(p5, fn) {
15601562 * @submodule p5.strands
15611563 * @beta
15621564 * @param {Function } callback A function building a p5.strands shader.
1565+ * @param {Object } [scope] An optional scope object passed to .modify().
15631566 * @returns {p5.Shader } The material shader.
15641567 */
15651568 /**
15661569 * @method buildMaterialShader
15671570 * @param {Object } hooks An object specifying p5.strands hooks in GLSL.
1571+ * @param {Object } [scope] An optional scope object passed to .modify().
15681572 * @returns {p5.Shader } The material shader.
15691573 */
1570- fn . buildMaterialShader = function ( cb ) {
1571- return this . baseMaterialShader ( ) . modify ( cb ) ;
1574+ fn . buildMaterialShader = function ( cb , scope ) {
1575+ return this . baseMaterialShader ( ) . modify ( cb , scope ) ;
15721576 } ;
15731577
15741578 /**
@@ -1776,15 +1780,17 @@ function material(p5, fn) {
17761780 * @submodule p5.strands
17771781 * @beta
17781782 * @param {Function } callback A function building a p5.strands shader.
1783+ * @param {Object } [scope] An optional scope object passed to .modify().
17791784 * @returns {p5.Shader } The normal shader.
17801785 */
17811786 /**
17821787 * @method buildNormalShader
17831788 * @param {Object } hooks An object specifying p5.strands hooks in GLSL.
1789+ * @param {Object } [scope] An optional scope object passed to .modify().
17841790 * @returns {p5.Shader } The normal shader.
17851791 */
1786- fn . buildNormalShader = function ( cb ) {
1787- return this . baseNormalShader ( ) . modify ( cb ) ;
1792+ fn . buildNormalShader = function ( cb , scope ) {
1793+ return this . baseNormalShader ( ) . modify ( cb , scope ) ;
17881794 } ;
17891795
17901796 /**
@@ -1940,15 +1946,17 @@ function material(p5, fn) {
19401946 * @submodule p5.strands
19411947 * @beta
19421948 * @param {Function } callback A function building a p5.strands shader.
1949+ * @param {Object } [scope] An optional scope object passed to .modify().
19431950 * @returns {p5.Shader } The color shader.
19441951 */
19451952 /**
19461953 * @method buildColorShader
19471954 * @param {Object } hooks An object specifying p5.strands hooks in GLSL.
1955+ * @param {Object } [scope] An optional scope object passed to .modify().
19481956 * @returns {p5.Shader } The color shader.
19491957 */
1950- fn . buildColorShader = function ( cb ) {
1951- return this . baseColorShader ( ) . modify ( cb ) ;
1958+ fn . buildColorShader = function ( cb , scope ) {
1959+ return this . baseColorShader ( ) . modify ( cb , scope ) ;
19521960 } ;
19531961
19541962 /**
@@ -2195,15 +2203,17 @@ function material(p5, fn) {
21952203 * @submodule p5.strands
21962204 * @beta
21972205 * @param {Function } callback A function building a p5.strands shader.
2206+ * @param {Object } [scope] An optional scope object passed to .modify().
21982207 * @returns {p5.Shader } The stroke shader.
21992208 */
22002209 /**
22012210 * @method buildStrokeShader
22022211 * @param {Object } hooks An object specifying p5.strands hooks in GLSL.
2212+ * @param {Object } [scope] An optional scope object passed to .modify().
22032213 * @returns {p5.Shader } The stroke shader.
22042214 */
2205- fn . buildStrokeShader = function ( cb ) {
2206- return this . baseStrokeShader ( ) . modify ( cb ) ;
2215+ fn . buildStrokeShader = function ( cb , scope ) {
2216+ return this . baseStrokeShader ( ) . modify ( cb , scope ) ;
22072217 } ;
22082218
22092219 /**
0 commit comments