dmurdoch / rgl

rgl is a 3D visualization system based on OpenGL. It provides a medium to high level interface for use in R, currently modelled on classic R graphics, with extensions to allow for interaction.
https://dmurdoch.github.io/rgl/
GNU General Public License v2.0
85 stars 20 forks source link

Allow different texture modes #299

Closed dmurdoch closed 1 year ago

dmurdoch commented 1 year ago

OpenGL supports several different texture modes; rgl only uses GL_MODULATE. GL_REPLACE would make more sense, e.g. see #298 . When the surface to modify is white, they are the same. When it is black, GL_MODULATE causes the texture to be ignored.