rgl.sprites {rgl} | R Documentation |
Adds a sprite set shape node to the scene.
rgl.sprites(x, y, z, radius, ...)
x, y, z |
point coordinates |
radius |
|
... |
material properties, texture mapping is supported |
Sprites are rectangle planes that are directed towards the viewpoint. Its primary used for fast (and faked) atmospherical effects, e.g. particles and clouds using alpha blended textures.
rgl.sprites(rnorm(500), rnorm(500), rnorm(500), color=rainbow(100), lit=FALSE, textype="alpha", texture=system.file("textures/particle.png", package="rgl"), alpha=.2)