fix: properly implement lines by only transforming points, not the mesh, also make lines and holdout bindless

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-10-26 00:01:40 +02:00
parent 8bfb01808a
commit 23f0b5f880
4 changed files with 56 additions and 18 deletions

View File

@@ -67,7 +67,14 @@ impl Plugin for ModelNodePlugin {
// No extra data needed for a simple holdout
#[derive(Default, Asset, AsBindGroup, TypePath, Debug, Clone)]
#[data(50, u32, binding_array(101))]
#[bindless(index_table(range(50..51), binding(100)))]
pub struct HoldoutExtension {}
impl From<&HoldoutExtension> for u32 {
fn from(_: &HoldoutExtension) -> Self {
0
}
}
impl MaterialExtension for HoldoutExtension {
fn fragment_shader() -> ShaderRef {
HOLDOUT_SHADER_HANDLE.into()