-
When i applying normal map to my meterial I see no effect. Am I doing anything wrong? let cobbelstone_material = materials.add(StandardMaterial {
reflectance: 0.0,
metallic: 1.0,
perceptual_roughness: 0.95,
base_color_texture: Some(asset_server.load("textures/cobbelstone/Cobblestone01_1K_BaseColor.png")),
normal_map_texture: Some(asset_server.load("textures/cobbelstone/Cobblestone01_1K_Normal.png")),
metallic_roughness_texture: Some(asset_server.load("textures/cobbelstone/Cobblestone01_1K_Roughness.png")),
occlusion_texture: Some(asset_server.load("textures/cobbelstone/Cobblestone01_1K_AO.png")),
..default()
}); |
Beta Was this translation helpful? Give feedback.
Answered by
nicopap
Dec 2, 2022
Replies: 1 comment 7 replies
-
Bevy requires the mesh vertices to have tangents sets to use normal maps, make sure you generate them as described in the |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
nicopap
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bevy requires the mesh vertices to have tangents sets to use normal maps, make sure you generate them as described in the
StandardMaterial
doc (https://docs.rs/bevy/latest/bevy/pbr/struct.StandardMaterial.html#structfield.normal_map_texture)