1

I was reading through the filament documentation and they give the comamnd to out .mat files from the jsonish material definition like this :

matc --reflect parameters filament/src/materials/skybox.mat 

I have two questions, how do I install this matc tool and after making the .mat file, how do I reference it to make the renderablemesh use it?

Icaro Amorim
  • 385
  • 1
  • 3
  • 13

1 Answers1

1

matc is the material compiler tool which you have to download from the filament repository release page.

  1. Download the archive for your operating system. If your os is window then download the window variation.
  2. Extract the archive wherever you want.
  3. Go to the bin folder inside it.
  4. Paste the .mat file
  5. Run the command: matc -p mobile -a opengl -o baked_color.filamat baked_color.mat. This command is building for mobile platform and opengl as graphics engine where input file is baked_color.mat and the output file is baked_color.filamat.

To know more about matc commands, visit this site.

Debdutta Panda
  • 168
  • 1
  • 6
  • 7