diff --git a/protocols/schemas/shapes.prs b/protocols/schemas/shapes.prs index fbee973..feb296d 100644 --- a/protocols/schemas/shapes.prs +++ b/protocols/schemas/shapes.prs @@ -20,6 +20,7 @@ Rotate = @euler / @quaternion / @uv +/ @uvAlpha . Color = diff --git a/scene/example.pr b/scene/example.pr index aa31c2d..2e8614e 100644 --- a/scene/example.pr +++ b/scene/example.pr @@ -8,8 +8,13 @@ >>>> - >>>> + + + + + 0.75 + >>>>> diff --git a/src/shapes.ts b/src/shapes.ts index acb2f5f..7f41b18 100644 --- a/src/shapes.ts +++ b/src/shapes.ts @@ -194,6 +194,9 @@ export function build(name: string, scene: Scene, shape: Shapes.Shape, customize switch (shape.value._variant) { case "simple": break; + case "uvAlpha": + mat.alpha = shape.value.alpha; + /* FALL THROUGH */ case "uv": { const scale = v2(shape.value.scale); const offset = v2(shape.value.offset); diff --git a/textures/oak-herringbone-5e80fb40b00c9-1200.jpg b/textures/oak-herringbone-5e80fb40b00c9-1200.jpg new file mode 100644 index 0000000..0b591cb Binary files /dev/null and b/textures/oak-herringbone-5e80fb40b00c9-1200.jpg differ