Function
Static Public Summary | ||
public |
Euler(x: *, y: *, z: *, order: *) |
|
public |
Matrix4() |
|
public |
Quaternion(x: *, y: *, z: *, w: *) |
|
public |
Vector3(x: *, y: *, z: *) |
|
public |
createArraySpan(items: mixed): ArraySpan Attempts to create an ArraySpan from the items provided. |
|
public |
createColorSpan(colors: mixed): ColorSpan Attempts to create an ArraySpan from the colors provided. |
|
public |
createSpan(a: *, b: *, c: *): * |
|
public |
|
|
public |
|
|
public |
this function was deprecated. Use fromJSONAsync instead.
Creates a System instance from a JSON object. |
|
public |
fromJSONAsync(json: object, THREE: object, System: function, Emitter: function, options: object): Promise<System> Creates a System instance from a JSON object. |
|
public |
getEasingByName(name: *) |
|
public |
Performs the chosen integration on the particle. |
|
public |
log(): * You can use this emit particles. |
|
public |
setEasingByName(easeName: *): * |
|
public |
|
|
public |
|
|
public |
withDefaults(defaults: *, properties: *) |
Static Private Summary | ||
private |
|
Static Public
public Euler(x: *, y: *, z: *, order: *) source
import {Euler} from 'three-nebula/src/core/three/Euler.js'
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
z | * | ||
order | * |
public Quaternion(x: *, y: *, z: *, w: *) source
import {Quaternion} from 'three-nebula/src/core/three/Quaternion.js'
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
z | * | ||
w | * |
public Vector3(x: *, y: *, z: *) source
import {Vector3} from 'three-nebula/src/core/three/Vector3.js'
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
z | * |
public createArraySpan(items: mixed): ArraySpan source
import {createArraySpan} from 'three-nebula/src/math/ArraySpan.js'
Attempts to create an ArraySpan from the items provided.
Params:
Name | Type | Attribute | Description |
items | mixed | Items to try and create an ArraySpan from |
public createColorSpan(colors: mixed): ColorSpan source
import {createColorSpan} from 'three-nebula/src/math/ColorSpan.js'
Attempts to create an ArraySpan from the colors provided.
Params:
Name | Type | Attribute | Description |
colors | mixed | colors to try and create an ArraySpan from |
public createSpan(a: *, b: *, c: *): * source
import {createSpan} from 'three-nebula/src/math/Span.js'
Params:
Name | Type | Attribute | Description |
a | * | ||
b | * | ||
c | * |
Return:
* |
public fragmentShader(): string source
import {fragmentShader} from 'three-nebula/src/renderer/GPURenderer/Mobile/shaders/fragmentShader.js'
public fragmentShader(): string source
import {fragmentShader} from 'three-nebula/src/renderer/GPURenderer/Desktop/shaders/fragmentShader.js'
public fromJSON(json: object, THREE: object, System: function, Emitter: function): System source
import fromJSON from 'three-nebula/src/core/fromJSON.js'
Creates a System instance from a JSON object.
Params:
Name | Type | Attribute | Description |
json | object | The JSON to create the System instance from |
|
THREE | object | The Web GL Api to use |
|
System | function | The system class |
|
Emitter | function | The emitter class |
|
json.preParticles | number | The predetermined number of particles |
|
json.integrationType | string | The integration algorithm to use |
|
json.emitters | array<object> | The emitters for the system instance |
public fromJSONAsync(json: object, THREE: object, System: function, Emitter: function, options: object): Promise<System> source
import fromJSONAsync from 'three-nebula/src/core/fromJSONAsync.js'
Creates a System instance from a JSON object.
Params:
Name | Type | Attribute | Description |
json | object | The JSON to create the System instance from |
|
json.preParticles | number | The predetermined number of particles |
|
json.integrationType | string | The integration algorithm to use |
|
json.emitters | array<object> | The emitters for the system instance |
|
THREE | object | The Web GL Api to use |
|
System | function | The system class |
|
Emitter | function | The emitter class |
|
options | object |
|
Optional config options |
public getEasingByName(name: *) source
import {getEasingByName} from 'three-nebula/src/ease/index.js'
Params:
Name | Type | Attribute | Description |
name | * |
public integrate(particle: Particle, time: number, damping: number, type: string): * source
import {integrate} from 'three-nebula/src/math/integration.js'
Performs the chosen integration on the particle. Defaults to euler integration.
Return:
* | void |
public log(): * source
import log from 'three-nebula/src/debug/log.js'
You can use this emit particles.
This method will console.log the fixed number of your info in updata or requestAnimationFrame
use like this log('+12',mc); log 12 times
Return:
* | void |
public setEasingByName(easeName: *): * source
import {setEasingByName} from 'three-nebula/src/ease/index.js'
Params:
Name | Type | Attribute | Description |
easeName | * |
Return:
* |
public vertexShader(): string source
import {vertexShader} from 'three-nebula/src/renderer/GPURenderer/Desktop/shaders/vertexShader.js'
public vertexShader(): string source
import {vertexShader} from 'three-nebula/src/renderer/GPURenderer/Mobile/shaders/vertexShader.js'
public withDefaults(defaults: *, properties: *) source
import {withDefaults} from 'three-nebula/src/utils/index.js'
Params:
Name | Type | Attribute | Description |
defaults | * | ||
properties | * |