material-maker icon indicating copy to clipboard operation
material-maker copied to clipboard

Support Bevy

Open tbillington opened this issue 1 year ago • 3 comments

Feature/enhancement description:

Support Bevy as an export target. Bevy is built on wgpu and uses wgsl for shaders.

tbillington avatar Aug 15 '23 06:08 tbillington

Does Bevy have a standard material resource format? If so, can you link to it?

Calinou avatar Aug 15 '23 09:08 Calinou

There's not a binary format yet. The definition is in rust source code and shaders are referenced either by asset path or included as strings in the source.

Here's an example of the standard Pbr material extracted into an external library and the shader it uses. And here's a much smaller example of a basic toon shading material.

This is the definition of the Material interface the code must implement.

tbillington avatar Aug 15 '23 09:08 tbillington

You can already create custom export targets (provided materials can be described as text and image files), creating a Bevy export should be pretty easy. Please don't hesitate to join the Discord server if you need help for this.

RodZill4 avatar Aug 19 '23 20:08 RodZill4