immersive-web / model-element

Repository for the <model> tag. Feature leads: Marcos Cáceres and Laszlo Gombos
https://immersive-web.github.io/model-element/
Other
62 stars 11 forks source link

filter CSS property #62

Open technohippy opened 1 year ago

technohippy commented 1 year ago

I'm glad if filter CSS properties are available for a model element like this:

a-model {
  filter: grayscale(80%);
}

Hopefully, additional filters for a 3d model will be defined like this:

filter: fog(white, 50, 2000);

If postprocessing can be defined with a fragment shader, it's really exciting.

filter: url("/postprocessing/mosaic.fs");
cabanier commented 1 year ago

This could be something that's considered for a later revision of the model element. It's not clear how these filter would apply to 3D content :-)

They will apply to the fallback content though since that's 2D