You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -263,7 +270,19 @@ if (typeof p5 !== "undefined") {
263
270
264
271
/**
265
272
* @typedef {Object} CombineColorsHook
266
-
*/
273
+
* @property {any} baseColor
274
+
* @property {any} diffuse
275
+
* @property {any} ambientColor
276
+
* @property {any} ambient
277
+
* @property {any} specularColor
278
+
* @property {any} specular
279
+
* @property {any} emissive
280
+
* @property {any} opacity
281
+
* @property {function(): undefined} begin
282
+
* @property {function(): undefined} end
283
+
* @property {function(color: any): void} set
284
+
*/
285
+
267
286
/**
268
287
* @property {CombineColorsHook} combineColors
269
288
* @beta
@@ -599,7 +618,23 @@ if (typeof p5 !== "undefined") {
599
618
600
619
/**
601
620
* @typedef {Object} PixelInputsHook
602
-
*/
621
+
* @property {any} normal
622
+
* @property {any} texCoord
623
+
* @property {any} ambientLight
624
+
* @property {any} ambientMaterial
625
+
* @property {any} specularMaterial
626
+
* @property {any} emissiveMaterial
627
+
* @property {any} color
628
+
* @property {any} shininess
629
+
* @property {any} metalness
630
+
* @property {any} tangent
631
+
* @property {any} center
632
+
* @property {any} position
633
+
* @property {any} strokeWeight
634
+
* @property {function(): undefined} begin
635
+
* @property {function(): undefined} end
636
+
*/
637
+
603
638
/**
604
639
* @property {PixelInputsHook} pixelInputs
605
640
* @beta
@@ -689,7 +724,15 @@ if (typeof p5 !== "undefined") {
689
724
*/
690
725
691
726
/**
692
-
* @property finalColor
727
+
* @typedef {Object} FinalColorHook
728
+
* @property {any} color
729
+
* @property {function(): undefined} begin
730
+
* @property {function(): undefined} end
731
+
* @property {function(color: any): void} set
732
+
*/
733
+
734
+
/**
735
+
* @property {FinalColorHook} finalColor
693
736
* @beta
694
737
* @description
695
738
* A shader hook block that modifies the final color of each pixel after all lighting is applied. This hook can be used inside <a href="#/p5/buildMaterialShader">`buildMaterialShader()`</a> and similar shader <a href="#/p5.Shader/modify">`modify()`</a> calls to adjust the color before it appears on the screen. Modifications happen between the `.begin()` and `.end()` methods of the hook.
@@ -828,7 +871,14 @@ if (typeof p5 !== "undefined") {
828
871
829
872
/**
830
873
* @typedef {Object} ObjectInputsHook
831
-
*/
874
+
* @property {any} position
875
+
* @property {any} normal
876
+
* @property {any} texCoord
877
+
* @property {any} color
878
+
* @property {function(): undefined} begin
879
+
* @property {function(): undefined} end
880
+
*/
881
+
832
882
/**
833
883
* @property {ObjectInputsHook} objectInputs
834
884
* @beta
@@ -873,7 +923,14 @@ if (typeof p5 !== "undefined") {
0 commit comments