tparisi / glam

GL and Markup

Home Page:http://www.glamjs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation for css styles

bnolan opened this issue · comments

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.

@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?

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.

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

@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

Done. See #41, #45