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
66 stars 12 forks source link

filter CSS property #62

Open technohippy opened 2 years ago

technohippy commented 2 years 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 2 years 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