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 billboarded towards the viewpoint. Its primary used for fast faked atmospherical effects e.g. particles and clouds using alpha blending textures.
rgl.sprites(rnorm(500),rnorm(500),rnorm(500),color=rainbow(100),lit=F,textype="alpha",texture=system.file("textures/particle.png",package="rgl"),alpha=0.2)