# Bevy pbr materials

> Bevy pbr materials is an open-source agent skill for developer tools. Guides an agent through Bevy 0.20 PBR materials, lights, and WESL shader errors. It is available on Claude Code and Cursor.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Cursor
- **Website:** https://github.com/shinyobjectz/raea-skills/tree/main/skills/bevy/pack/bevy-pbr-materials
- **Repository:** https://github.com/shinyobjectz/raea-skills
- **GitHub stars:** 38
- **License:** MIT
- **Skill name:** bevy-pbr-materials
- **Collection:** https://github.com/shinyobjectz/raea-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill gives a coding agent reference knowledge for physically based rendering in Bevy 0.20. It covers spawning meshes with StandardMaterial, writing custom Material types that bind uniforms through AsBindGroup and use WESL shaders, and configuring lights for shadow maps and contact shadows. It also covers camera-side options such as ContactShadows and ScreenSpaceTransmission, and spawning an Atmosphere entity.

The skill is mostly a migration and troubleshooting guide. It lists renamed fields and removed APIs from Bevy 0.18 to 0.19 and from 0.19 to 0.20, including the move from naga_oil directives to WESL imports and the change to glTF material sub-asset paths. Rust code samples show the current patterns, and a separate reference file covers the Material trait, lighting, and mesh primitives.

It is written for Rust projects using Bevy and expects the agent to edit source and shader files in an assets folder. The skill has no scripts and does not call external services.

## When your agent uses it

> Use when spawning `Mesh3d` with `StandardMaterial`, writing a custom `Material` with `AsBindGroup` and a `.wesl` shader, enabling `shadow_maps_enabled` / `contact_shadows_enabled` on lights, adding `ContactShadows` or `ScreenSpaceTransmission` to a `Camera3d`, spawning an `Atmosphere` entity, loading glTF `#Material0/std` sub-assets, or fixing `#import` / `#ifdef` shader errors after the WESL switch in Bevy 0.20.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/bevy/pack/bevy-pbr-materials)
- [License: MIT](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/bevy/pack/bevy-pbr-materials)

## Features

- **StandardMaterial setup:** Shows how to spawn a mesh with a physically based material and tune base color, roughness, and metallic values.
- **Custom Material authoring:** Explains defining a Material with AsBindGroup uniforms and pointing it at a WESL fragment shader.
- **Light and shadow options:** Covers shadow map and contact shadow fields on point, directional, and spot lights.
- **WESL shader migration:** Lists how naga_oil directives such as #import and #ifdef map to WESL syntax in Bevy 0.20.
- **Version upgrade notes:** Summarizes renamed fields and removed APIs across the Bevy 0.18 to 0.20 releases.
- **Atmosphere and glass rendering:** Describes spawning an Atmosphere entity and enabling screen-space transmission for translucent materials.

## Good for

- Make a mesh look metallic with a custom roughness value in Bevy
- Write a custom Bevy material that tints a mesh through a WESL shader
- Fix a shadows_enabled compiler error after upgrading to Bevy 0.19
- Convert a naga_oil #import line to WESL import syntax
- Load a glTF material as a StandardMaterial handle in Bevy 0.20
- Enable contact shadows on a directional light and camera

## Install

### Claude Code

This skill ships in the `raea` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add shinyobjectz/raea-skills
/plugin install raea@raea
```

Or copy only this skill to `~/.claude/skills/bevy-pbr-materials`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/bevy-pbr-materials &&
cp -R "$tmp/skills/bevy/pack/bevy-pbr-materials" ~/.claude/skills/bevy-pbr-materials &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/bevy-pbr-materials` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/bevy-pbr-materials` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/bevy-pbr-materials &&
cp -R "$tmp/skills/bevy/pack/bevy-pbr-materials" ~/.agents/skills/bevy-pbr-materials &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/bevy-pbr-materials` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/bevy-pbr-materials` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/bevy-pbr-materials &&
cp -R "$tmp/skills/bevy/pack/bevy-pbr-materials" ~/.cursor/skills/bevy-pbr-materials &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/bevy-pbr-materials` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/shinyobjectz/raea-skills.git --path skills/bevy/pack/bevy-pbr-materials
```

Or copy the folder to `~/.gemini/skills/bevy-pbr-materials` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/bevy-pbr-materials`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/bevy-pbr-materials &&
cp -R "$tmp/skills/bevy/pack/bevy-pbr-materials" ~/.copilot/skills/bevy-pbr-materials &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/bevy-pbr-materials` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git
```

Then copy `raea-skills/skills/bevy/pack/bevy-pbr-materials` into your agent's skills folder as `bevy-pbr-materials`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which Bevy version does Bevy pbr materials target?

It targets Bevy 0.20 and includes migration notes from 0.18 and 0.19.

### Does the skill run any scripts or external tools?

No. It has no scripts and contains reference guidance and code samples only.

### What should I do when a shader fails with an #import error?

The skill says naga_oil is gone in 0.20, so imports are rewritten as WESL import statements and shader files use the .wesl extension.

### Why does transparent glass look flat after upgrading?

In Bevy 0.20 ScreenSpaceTransmission is opt-in, so it must be added to the camera or transmissive materials.

### How do I install Bevy pbr materials in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/bevy-pbr-materials to use it in all your projects, or to .claude/skills/bevy-pbr-materials in one project. Or install the raea plugin, which includes it: /plugin marketplace add shinyobjectz/raea-skills, then /plugin install raea@raea.

### Does Bevy pbr materials run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Bevy pbr materials?

Claude Code and Cursor. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Bevy pbr materials?

The closest alternatives to Bevy pbr materials are Bevy rendering, Bevy vfx, Bevy assets, Bevy migration 0 19 to 0 20 and Bevy migration 0 17 to 0 18.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Bevy rendering](https://ai-powered.com/skills/bevy-rendering): Bevy rendering is an open-source agent skill for developer tools.
- [Bevy vfx](https://ai-powered.com/skills/bevy-vfx): Bevy vfx is an open-source agent skill for developer tools.
- [Bevy assets](https://ai-powered.com/skills/bevy-assets): Bevy assets is an open-source agent skill for developer tools.
- [Bevy migration 0 19 to 0 20](https://ai-powered.com/skills/bevy-migration-0-19-to-0-20): Bevy migration 0 19 to 0 20 is an open-source agent skill for developer tools.
- [Bevy migration 0 17 to 0 18](https://ai-powered.com/skills/bevy-migration-0-17-to-0-18): Bevy migration 0 17 to 0 18 is an open-source agent skill for developer tools.
- [Bevy wasm webgpu](https://ai-powered.com/skills/bevy-wasm-webgpu): Bevy wasm webgpu is an open-source agent skill for developer tools.
- [Bevy cameras](https://ai-powered.com/skills/bevy-cameras): Bevy cameras is an open-source agent skill for developer tools.
- [Bevy cargo features](https://ai-powered.com/skills/bevy-cargo-features): Bevy cargo features is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/bevy-pbr-materials
