Skip to content

Commit

Permalink
Add comment about occlusion sharing texture
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsr committed Mar 12, 2021
1 parent c8a64c8 commit 0a6d008
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bevy_gltf/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ fn load_material(material: &Material, load_context: &mut LoadContext) -> Handle<
&mut dependencies,
);

// This is because GLTF actually defines the occlusion_texture separately, but if it is the same, we don't want to pass it to the shader twice.
let occlusion_texture = load_texture(
material
.occlusion_texture()
Expand Down

0 comments on commit 0a6d008

Please sign in to comment.