Enable/disable fog for content far from the camera
m_enable_fog(id, fog = TRUE)R3dmol id or a r3dmol object (the output from
r3dmol())
whether to enable or disable the fog, default is TRUE.
R3dmol id or a r3dmol object (the output from
r3dmol())
library(r3dmol)
r3dmol() %>%
m_add_model(data = pdb_6zsl, format = "pdb") %>%
m_set_style(style = m_style_cartoon()) %>%
m_enable_fog(fog = FALSE)