tparisi / glam

GL and Markup
http://www.glamjs.org/
MIT License
237 stars 36 forks source link

Documentation for css styles #28

Closed bnolan closed 9 years ago

bnolan commented 9 years ago

Heya, It'd be great to get some documentation of the supported css styles so I can try and get scenevr to sync up with glam as much as possible.

tparisi commented 9 years ago

@bnolan agreed... at the same time I'm rethinking the CSS part of this. time for the straw poll I guess: should we even be trying to extend CSS? Kinda broken, kinda problematic. I like having the separation of concerns-- I wish Web Components addressed this issue-- but maybe CSS isn't the way to go? Any ideas?

bnolan commented 9 years ago

I don't like all the css rules you have (like the cube-map stuff is maybe a bit verbose), but I like the general idea. I'm going to add css support to SceneVR. Being able to change the material type / color / emissive / specular maps in css seems like a good match.

tparisi commented 9 years ago

Actually I have a much more compact version coming up. It's going to be one CSS property, 'image' with space-separated stuff e.g. diffuse url(colormap.jpg) normal url(normalmap.jpg) cube-left url(cubemapleft.jpg) and so on. You like that better? @bnolan

tparisi commented 9 years ago

@bnolan but that does create one issue which is, I don't think you should have to go through the stylesheet to update these things in real time... that's another big problem with using CSS. I mean, I don't want to have to reconstruct the whole string just to change the specular map

tparisi commented 9 years ago

Done. See #41, #45