points.ShaderType()

new ShaderType()

In different calls to the main Points class, it is used to tell the library in what stage of the shaders the data to be sent.

Source:
ShaderType.js, line 3
Examples
points.setStorage('variables', 'Variables', false, ShaderType.FRAGMENT);
points.setStorage('objects', `array<Object, ${numObjects}>`, false, ShaderType.FRAGMENT);
Send storage data to the Fragment Shaders only
points.setStorage('variables', 'Variable', false, ShaderType.COMPUTE);
Send storage data to the Compute Shaders only

MIT

Documentation generated by JSDoc 4.0.4 using Docolatte theme on