Skip to content
프로젝트

소개

Shaders and other small Bevy examples

학습 및 교육

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Bevy Examples

This repo is a selection of contained examples using the Bevy game engine. It's split into three sub-folders:

  • concepts
  • examples
  • libs

Concepts

Concepts examples showing off ECS APIs and approachs like Component Hooks, Observers, Relationships, and mipmaps.

Examples

A variety of demos, often shader-related.

candy-cane

A shader example showing the usage of ShaderStorageBuffer to pass variable amounts of configuration to a material to render candy cane stripes.

candy canes

cube-wave

cube wave animation

A custom material that uses a vertex shader to modulate the position of a series of cubes.

dissolve-sphere-standard-material-extensions

dissolve

A dissolve effect that takes advantage of a custom prepass shader.

edge-detection-custom-phase

edge detection

Outlines can be achieved in many ways, and the source for edge detection with something like a sobel filter can come from depth prepass, normal data, or anywhere else. This demo uses a custom render phase and artist-authored vertex colors to control where outlines show up. The custom phase renders the vertex data, using Bevy's mesh data pielines, to an image which is then used as the data source for the sobel filter in a postprocess effect.

fresnel-effect

fresnel

Fresnel is an effect that is based on the viewing angle. This demo shows off the fresnel effect combined and broken down into its components.

There is an associated video talking through the effect using Bevy 0.8 which is fairly old, but the concepts are still relevant and the code in the repo here is up to date with Bevy's latest version.

libs

Re-usable crates, some are public and some are used in the examples.

bevy_shader_utils

shader utils

A utility package that provides a series of noise functions and other utilities for use in wgpu shaders. Noise functions provided include: perlin, simplex, voronoise, and a pristine grid.

bevy_blockout

blockout

A triplanar blockout material that uses worldspace coordinates to texture meshes using a grid where 1 box equals 1 world unit

bevy_prepass_debug

A crate used in examples to display the depth, normal, and motion vector prepass information when examples use them.

관련 프로젝트 살펴보기

불러오는 중…