August 2018
Intermediate to advanced
528 pages
10h 58m
English
With THREE.SpriteCanvasMaterial, you can use the output from an HTML5 canvas as a texture for your particles. This material is specifically created for THREE.CanvasRenderer and only works when you use this specific renderer. Before we look at how to use this material, let's first look at the attributes you can set on this material:
|
Name |
Description |
|
color |
This is the color of the particle. Depending on the specified blending mode, this affects the color of the canvas image. |
|
program |
This is a function that takes a canvas context as a parameter. This function is called when the particle is rendered. The output from the calls to this 2D drawing context is shown as the particle. |
Read now
Unlock full access