import DesktopGPURenderer from 'three-nebula/src/renderer/GPURenderer/Desktop/index.js'
DesktopGPURenderer
Extends:
GPURenderer for devices that support floating point textures.
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
buffer: * |
|
public |
camera: * |
|
public |
container: * |
|
public |
geometry: * |
|
public |
material: * |
|
public |
|
|
public |
points: * |
|
public |
|
|
public |
stride: * |
|
public |
targetPool: * |
|
public |
textureAtlas: * |
|
public |
uniqueList: * |
Method Summary
Public Methods | ||
public |
destroy(): * Tears down the GPURenderer. |
|
public |
getTextureID(texture: *, debug: *): * |
|
public |
mapParticleTargetPropsToPoint(particle: Particle): DesktopGPURenderer Entry point for mapping particle properties to buffer geometry points. |
|
public |
Pools the particle target if it does not exist. |
|
public |
Resets and clears the particle target. |
|
public |
Maps particle properties to the point if the particle has a target. |
|
public |
onSystemUpdate(system: *) |
|
public |
updatePointAlpha(particle: Particle): DesktopGPURenderer Updates the point alpha attribute with the particle's target alpha. |
|
public |
updatePointColor(particle: Particle): DesktopGPURenderer Updates the point's color attribute according with the particle's target color. |
|
public |
updatePointPosition(particle: Particle): DesktopGPURenderer Updates the point's position according to the particle's target position. |
|
public |
updatePointRotation(particle: Particle): DesktopGPURenderer Updates the point's rotation. |
|
public |
updatePointSize(particle: Particle): DesktopGPURenderer Updates the point's size relative to the particle's target scale and radius. |
|
public |
updatePointTextureIndex(particle: Particle): DesktopGPURenderer Updates the point texture attribute with the particle's target texture. |
|
public |
Maps all mutable properties from the particle to the target. |
Inherited Summary
From class BaseRenderer | ||
public |
system: * |
|
public |
The class type. |
|
public |
init(system: *) |
|
public |
logRendererType(): * Logs the renderer type being used when in development mode. |
|
public abstract |
onParticleCreated(particle: *) |
|
public abstract |
onParticleDead(particle: *) |
|
public abstract |
onParticleUpdate(particle: *) |
|
public abstract |
onSystemUpdate(system: *) |
|
public |
remove() |
Public Constructors
Public Members
public buffer: * source
public camera: * source
public container: * source
public geometry: * source
public material: * source
public particleBuffer: * source
public points: * source
public shouldDebugTextureAtlas: * source
public stride: * source
public targetPool: * source
public textureAtlas: * source
public uniqueList: * source
Public Methods
public getTextureID(texture: *, debug: *): * source
Params:
Name | Type | Attribute | Description |
texture | * | ||
debug | * |
Return:
* |
public mapParticleTargetPropsToPoint(particle: Particle): DesktopGPURenderer source
Entry point for mapping particle properties to buffer geometry points.
Params:
Name | Type | Attribute | Description |
particle | Particle | The particle containing the properties to map |
public onParticleCreated() source
Pools the particle target if it does not exist. Updates the target and maps particle properties to the point.
Override:
BaseRenderer#onParticleCreatedpublic onParticleDead() source
Resets and clears the particle target.
Override:
BaseRenderer#onParticleDeadpublic onParticleUpdate() source
Maps particle properties to the point if the particle has a target.
Override:
BaseRenderer#onParticleUpdatepublic onSystemUpdate(system: *) source
Override:
BaseRenderer#onSystemUpdateParams:
Name | Type | Attribute | Description |
system | * |
public updatePointAlpha(particle: Particle): DesktopGPURenderer source
Updates the point alpha attribute with the particle's target alpha.
Params:
Name | Type | Attribute | Description |
particle | Particle | The particle containing the target alpha. |
public updatePointColor(particle: Particle): DesktopGPURenderer source
Updates the point's color attribute according with the particle's target color.
Params:
Name | Type | Attribute | Description |
particle | Particle | The particle containing the target color and alpha. |
public updatePointPosition(particle: Particle): DesktopGPURenderer source
Updates the point's position according to the particle's target position.
Params:
Name | Type | Attribute | Description |
particle | Particle | The particle containing the target position. |
public updatePointRotation(particle: Particle): DesktopGPURenderer source
Updates the point's rotation.
Params:
Name | Type | Attribute | Description |
particle | Particle | The particle containing the target rotation. |
public updatePointSize(particle: Particle): DesktopGPURenderer source
Updates the point's size relative to the particle's target scale and radius.
Params:
Name | Type | Attribute | Description |
particle | Particle | The particle containing the target scale. |
public updatePointTextureIndex(particle: Particle): DesktopGPURenderer source
Updates the point texture attribute with the particle's target texture.
Params:
Name | Type | Attribute | Description |
particle | Particle | The particle containing the target texture. |
public updateTarget(): DesktopGPURenderer source
Maps all mutable properties from the particle to the target.