Skip to content

Commit ba6da4a

Browse files
committed
Add a function for computing a world point from a screen point
1 parent e967a83 commit ba6da4a

File tree

328 files changed

+14601
-5331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

328 files changed

+14601
-5331
lines changed

.cargo/config_fast_builds

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Add the contents of this file to `config.toml` to enable "fast build" configuration. Please read the notes below.
22

33
# NOTE: For maximum performance, build using a nightly compiler
4-
# If you are using rust stable, remove the "-Zshare-generics=y" below (as well as "-Csplit-debuginfo=unpacked" when building on macOS).
4+
# If you are using rust stable, remove the "-Zshare-generics=y" below.
55

66
[target.x86_64-unknown-linux-gnu]
77
linker = "/usr/bin/clang"
@@ -10,7 +10,7 @@ rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"]
1010
# NOTE: you must manually install https://github.com/michaeleisel/zld on mac. you can easily do this with the "brew" package manager:
1111
# `brew install michaeleisel/zld/zld`
1212
[target.x86_64-apple-darwin]
13-
rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld", "-Zshare-generics=y", "-Csplit-debuginfo=unpacked"]
13+
rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld", "-Zshare-generics=y"]
1414

1515
[target.x86_64-pc-windows-msvc]
1616
linker = "rust-lld.exe"

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Bug Report
33
about: Report a bug to help us improve!
44
title: ''
5-
labels: ''
5+
labels: bug, needs-triage
66
assignees: ''
77
---
88

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Docs Improvement
3+
about: Help us write better docs to catch common issues!
4+
title: ''
5+
labels: documentation, needs-triage
6+
assignees: ''
7+
---
8+
9+
## How can Bevy's documentation be improved?
10+
11+
Provide a link to the documentation and describe how it could be improved. In what ways is it incomplete, incorrect, or misleading?
12+
13+
If you have suggestions on exactly what the new docs should say, feel free to include them here. Or alternatively, make the changes yourself and [create a pull request](https://bevyengine.org/learn/book/contributing/code/) instead.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Feature Request
33
about: Propose a new feature!
44
title: ''
5-
labels: ''
5+
labels: enhancement, needs-triage
66
assignees: ''
77
---
88

.github/bors.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ status = [
77
"build-wasm (nightly, ubuntu-latest)",
88
"build-android",
99
"markdownlint",
10+
"check-markdown-links",
11+
"run-examples",
12+
"check-doc",
1013
]
1114

1215
use_squash_merge = true
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(
2+
exit_after: Some(300)
3+
)

.github/example-run/breakout.ron

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(
2+
exit_after: Some(1800)
3+
)

.github/example-run/contributors.ron

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(
2+
exit_after: Some(1800)
3+
)

.github/example-run/load_gltf.ron

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(
2+
exit_after: Some(300)
3+
)

.github/example-run/scene.ron

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(
2+
exit_after: Some(1800)
3+
)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"ignorePatterns": [
3+
{
4+
"pattern": "^https?://github\\.com/"
5+
}
6+
],
7+
"replacementPatterns": [],
8+
"httpHeaders": [
9+
{
10+
"urls": ["https://crates.io"],
11+
"headers": {
12+
"Accept": "text/html"
13+
}
14+
}
15+
],
16+
"timeout": "20s",
17+
"retryOn429": true,
18+
"retryCount": 5,
19+
"fallbackRetryDelay": "30s",
20+
"aliveStatusCodes": [200, 206]
21+
}

.github/workflows/ci.yml

Lines changed: 63 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,71 @@ jobs:
8585
fetch-depth: 0
8686

8787
- name: Run Markdown Lint
88-
uses: github/super-linter@v3.15.2
88+
uses: github/super-linter@v3
8989
env:
9090
VALIDATE_ALL_CODEBASE: false
9191
VALIDATE_MARKDOWN: true
92-
DEFAULT_BRANCH: master
92+
DEFAULT_BRANCH: main
9393
# Not needed here as only one Linter is used.
9494
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
96+
check-markdown-links:
97+
runs-on: ubuntu-latest
98+
steps:
99+
- uses: actions/checkout@v2
100+
- uses: gaurav-nelson/github-action-markdown-link-check@0fe4911067fa322422f325b002d2038ba5602170
101+
with:
102+
use-quiet-mode: 'yes'
103+
use-verbose-mode: 'yes'
104+
config-file: '.github/linters/markdown-link-check.json'
105+
106+
run-examples:
107+
runs-on: ubuntu-latest
108+
109+
steps:
110+
- name: Install dependencies
111+
run: |
112+
sudo apt-get update;
113+
DEBIAN_FRONTEND=noninteractive sudo apt-get install --no-install-recommends -yq \
114+
libasound2-dev libudev-dev wget unzip xvfb;
115+
116+
- uses: actions/checkout@v2
117+
118+
- uses: actions-rs/toolchain@v1
119+
with:
120+
toolchain: stable
121+
122+
- name: Setup swiftshader
123+
run: |
124+
wget https://github.com/qarmin/gtk_library_store/releases/download/3.24.0/swiftshader.zip;
125+
unzip swiftshader.zip;
126+
curr="$(pwd)/libvk_swiftshader.so";
127+
sed -i "s|PATH_TO_CHANGE|$curr|" vk_swiftshader_icd.json;
128+
129+
- name: Build bevy
130+
run: |
131+
cargo build --no-default-features --features "bevy_dynamic_plugin,bevy_gilrs,bevy_gltf,bevy_wgpu,bevy_winit,render,png,hdr,x11,bevy_ci_testing"
132+
133+
- name: Run examples
134+
run: |
135+
for example in .github/example-run/*.ron; do
136+
example_name=`basename $example .ron`
137+
echo "running $example_name - "`date`
138+
time CI_TESTING_CONFIG=$example VK_ICD_FILENAMES=$(pwd)/vk_swiftshader_icd.json DRI_PRIME=0 xvfb-run cargo run --example $example_name --no-default-features --features "bevy_dynamic_plugin,bevy_gilrs,bevy_gltf,bevy_wgpu,bevy_winit,render,png,hdr,x11,bevy_ci_testing"
139+
sleep 10
140+
done
141+
142+
check-doc:
143+
runs-on: ubuntu-latest
144+
steps:
145+
- uses: actions/checkout@v2
146+
- name: Install alsa and udev
147+
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
148+
if: runner.os == 'linux'
149+
- name: Installs cargo-deadlinks
150+
run: cargo install cargo-deadlinks
151+
- name: Build and check doc
152+
run: RUSTDOCFLAGS='-D warnings' cargo doc --all-features --no-deps
153+
- name: Checks dead links
154+
run: cargo deadlinks --dir target/doc/bevy
155+
continue-on-error: true

.github/workflows/dependencies.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Dependencies
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**/Cargo.toml'
7+
- 'deny.toml'
8+
push:
9+
branches: [main, staging, trying]
10+
paths:
11+
- '**/Cargo.toml'
12+
- 'deny.toml'
13+
schedule:
14+
- cron: "0 0 * * 0"
15+
16+
env:
17+
CARGO_TERM_COLOR: always
18+
19+
jobs:
20+
check-advisories:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Install cargo-deny
25+
run: cargo install cargo-deny
26+
- name: Check for security advisories and unmaintained crates
27+
run: cargo deny check advisories
28+
29+
check-bans:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v2
33+
- name: Install cargo-deny
34+
run: cargo install cargo-deny
35+
- name: Check for banned and duplicated dependencies
36+
run: cargo deny check bans
37+
38+
check-licenses:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v2
42+
- name: Install cargo-deny
43+
run: cargo install cargo-deny
44+
- name: Check for unauthorized licenses
45+
run: cargo deny check licenses
46+
47+
check-sources:
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v2
51+
- name: Install cargo-deny
52+
run: cargo install cargo-deny
53+
- name: Checked for unauthorized crate sources
54+
run: cargo deny check sources

.github/workflows/ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
toolchain: stable
1919
override: true
2020

21-
- uses: actions/[email protected].4
21+
- uses: actions/[email protected].5
2222
with:
2323
path: |
2424
target

0 commit comments

Comments
 (0)