immersive-web/model-element

filter CSS property

technohippy opened this issue · 1 comments

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");

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