rgl.material               package:rgl               R Documentation

_g_e_n_e_r_i_c _A_p_p_e_a_r_a_n_c_e _s_e_t_u_p

_D_e_s_c_r_i_p_t_i_o_n:

     Set material properties for geometry appearance.

_U_s_a_g_e:

     rgl.material(
       color = "white",  alpha = 1.0,
       lit = TRUE, ambient = "black",  specular="white", emission = "black", shininess = 50.0, 
       smooth = TRUE,  texture = NULL, textype = "rgb",
       front = "fill", back = "fill",
       size = 1.0, fog = TRUE
     )

_A_r_g_u_m_e_n_t_s:

   color: vector of R color character vectors. Represents the diffuse
          component in case of lighting calculation (lit = TRUE),
          otherwise it describes the solid color characteristics. 

     lit: logical, specifying if lighting calculation should take place
          on geometry 

ambient, specular, emission, shininess: properties for lighting
          calculation. ambient, specular, emission are R color
          character string values, shininess represents a numerical. 

   alpha: vector of alpha values between 0.0 (full transparency) .. 1.0
          (opaque). 

  smooth: logical, specifying whether gourad shading(smooth) or flat
          shading should be used 

 texture: path to a texture image file (currently 256 x 256 is a must!)
          Supported formats: png. 

 textype: specifies the texture type:

             *  \"alpha\"           alpha texture

             *  \"luminance\"       luminance texture

             *  \"luminance.alpha\" luminance/alpha texture

             *  \"rgb\"             color texture

             *  \"rgba\"            color/alpha texture

front, back: Specifies the polygon mode for the specified side:

             *  \"fill\" fill polygon

             *  \"line\" wireframe polygon

             *  \"points\" point polygon

             *  \"cull\" cull (hide) polygon

    size: numeric, specifying the line and point size. 

     fog: logical, specifying if fog effect should take place on
          associated shape

_D_e_t_a_i_l_s:

     Only one side at a time can be culled.

_S_e_e _A_l_s_o:

     `rgl.primitive', `rgl.bbox', `rgl.bg', `rgl.light'

