Skip to content

Commit 1d01ca8

Browse files
committed
docs: remove getPointSize documentation as it is not present in public shaders
1 parent 06cf619 commit 1d01ca8

File tree

1 file changed

+1
-51
lines changed

1 file changed

+1
-51
lines changed

src/webgl/ShaderGenerator.js

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,54 +1746,4 @@ if (typeof p5 !== 'undefined') {
17461746
* }
17471747
* </code>
17481748
* </div>
1749-
*/
1750-
1751-
/**
1752-
* @function getPointSize
1753-
* @experimental
1754-
* @description
1755-
* Registers a callback to modify the size of points when rendering with a shader.
1756-
*
1757-
* This hook can be used inside the following shader modify functions:
1758-
* - <a href="#/p5/baseMaterialShader">baseMaterialShader()</a>.modify()
1759-
* - <a href="#/p5/baseNormalShader">baseNormalShader()</a>.modify()
1760-
* - <a href="#/p5/baseColorShader">baseColorShader()</a>.modify()
1761-
* - <a href="#/p5/baseStrokeShader">baseStrokeShader()</a>.modify()
1762-
* - <a href="#/p5/baseFilterShader">baseFilterShader()</a>.modify()
1763-
*
1764-
* Use this hook when drawing points (for example, with the point() function in WEBGL mode).
1765-
* The callback receives the current point size (number) and should return the new size (number).
1766-
*
1767-
* This hook is available in:
1768-
* - <a href="#/p5/baseMaterialShader">baseMaterialShader()</a>
1769-
* - <a href="#/p5/baseNormalShader">baseNormalShader()</a>
1770-
* - <a href="#/p5/baseColorShader">baseColorShader()</a>
1771-
* - <a href="#/p5/baseStrokeShader">baseStrokeShader()</a>
1772-
* - <a href="#/p5/baseFilterShader">baseFilterShader()</a>
1773-
*
1774-
* @param {function} callback
1775-
* A callback function which receives and returns the point size.
1776-
*
1777-
* @example
1778-
* <div modernizr='webgl'>
1779-
* <code>
1780-
* let myShader;
1781-
* function setup() {
1782-
* createCanvas(200, 200, WEBGL);
1783-
* myShader = baseMaterialShader().modify(() => {
1784-
* getPointSize(size => {
1785-
* // Make points pulse in size over time
1786-
* return size * (1.0 + 0.5 * sin(millis() * 0.002));
1787-
* });
1788-
* });
1789-
* }
1790-
* function draw() {
1791-
* background(255);
1792-
* shader(myShader);
1793-
* strokeWeight(20);
1794-
* stroke('blue');
1795-
* point(0, 0);
1796-
* }
1797-
* </code>
1798-
* </div>
1799-
*/
1749+
*/

0 commit comments

Comments
 (0)