xml3d / xml3d.js

The WebGL/JS implementation of XML3D
Other
75 stars 25 forks source link

define visibility with css #85

Closed j4yk closed 8 years ago

j4yk commented 9 years ago

Currently meshes can be hidden with the Xml attribute visible="false". It would be consistent with all the directions to use CSS for transforms, shaders etc. to allow the visibility to be set via CSS properties such as "display: none" or "visibility: hidden". Since display: block or inline probably have no meaning in 3D scenes I would go with the visibility property.