Skip to content

Commit

Permalink
Add note on normal maps
Browse files Browse the repository at this point in the history
  • Loading branch information
JMS55 committed Sep 7, 2024
1 parent db2260a commit d27a1e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/bevy_pbr/src/meshlet/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ pub const MESHLET_MESH_ASSET_VERSION: u64 = 1;
/// There are restrictions on the [`crate::Material`] functionality that can be used with this type of mesh.
/// * Materials have no control over the vertex shader or vertex attributes.
/// * Materials must be opaque. Transparent, alpha masked, and transmissive materials are not supported.
/// * Do not use normal maps baked from higher-poly geometry. Use the high-poly geometry directly and skip the normal map.
/// * If additional detail is needed, a smaller tiling normal map not baked from a mesh is ok.
/// * Material shaders must not use builtin functions that automatically calculate derivatives https://gpuweb.github.io/gpuweb/wgsl/#derivatives.
/// * Use `pbr_functions::sample_texture` to sample textures instead.
/// * Performing manual arithmetic on UV coordinates is forbidden. Use the chain-rule version of arithmetic functions instead (TODO: not yet implemented).
Expand Down

0 comments on commit d27a1e8

Please sign in to comment.