Skip to content

Commit

Permalink
Add source for some resources
Browse files Browse the repository at this point in the history
  • Loading branch information
asny committed Jan 16, 2022
1 parent c07df08 commit 1079547
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/environment/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn main() {

let scene = Loading::new(
&context,
&["examples/assets/chinese_garden_4k.hdr"],
&["examples/assets/chinese_garden_4k.hdr"], // Source: https://polyhaven.com/
move |context, mut loaded| {
let skybox = Skybox::new_with_texture(
&context,
Expand Down
2 changes: 1 addition & 1 deletion examples/image/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() {

let image = Loading::new(
&context,
&["examples/assets/syferfontein_18d_clear_4k.hdr"],
&["examples/assets/syferfontein_18d_clear_4k.hdr"], // Source: https://polyhaven.com/
move |context, mut loaded| Texture2D::new(&context, &loaded.hdr_image("")?),
);

Expand Down
2 changes: 1 addition & 1 deletion examples/lighting/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn main() {

let model = Loading::new(
&context,
&["examples/assets/gltf/DamagedHelmet.glb"],
&["examples/assets/gltf/DamagedHelmet.glb"], // Source: https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0
move |context, mut loaded| {
let (mut cpu_meshes, cpu_materials) = loaded.gltf("DamagedHelmet.glb").unwrap();
let mut material = PhysicalMaterial::new(&context, &cpu_materials[0]).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion examples/logo/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn main() {

let lights = Loading::new(
&context,
&["examples/assets/syferfontein_18d_clear_4k.hdr"],
&["examples/assets/syferfontein_18d_clear_4k.hdr"], // Source: https://polyhaven.com/
move |context, mut loaded| {
let environment_map =
TextureCubeMap::<f32>::new_from_equirectangular(&context, &loaded.hdr_image("")?)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/pbr/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ fn main() {
let scene = Loading::new(
&context,
&[
"examples/assets/gltf/DamagedHelmet.glb",
"examples/assets/chinese_garden_4k.hdr",
"examples/assets/gltf/DamagedHelmet.glb", // Source: https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0
"examples/assets/chinese_garden_4k.hdr", // Source: https://polyhaven.com/
],
move |context, mut loaded| {
let environment_map = loaded.hdr_image("chinese").unwrap();
Expand Down

0 comments on commit 1079547

Please sign in to comment.