pmndrs / lamina

🍰 An extensible, layer based shader material for ThreeJS
MIT License
1.01k stars 41 forks source link

Skinned Meshes stop working with Lamina #30

Closed alejandromizraji closed 2 years ago

alejandromizraji commented 2 years ago

Skinned meshes stop working when using Lamina. I think it might be because the shader is not implementing skinned meshes maybe?

Example without lamina:

Screen Shot 2022-04-16 at 19 26 13

Screen Shot 2022-04-16 at 19 26 05

When i add Lamina:

Screen Shot 2022-04-16 at 19 26 27

Screen Shot 2022-04-16 at 19 26 35

FarazzShaikh commented 2 years ago

Hey! Can you make a sandbox of your code? Also, what version of Lamina are you using?

alejandromizraji commented 2 years ago

Hi! Sure!

I am using version 1.1.13 of lamina.

Here is an example using a drei example but applying lamina material. If you add a different material other than lamina it works.

https://codesandbox.io/s/skinned-mesh-nlamina-forked-2yew8d?file=/src/Model.js:2140-2145

FarazzShaikh commented 2 years ago

fixed via 1.1.15

https://codesandbox.io/s/skinned-mesh-nlamina-forked-km9y9e

alejandromizraji commented 2 years ago

@FarazzShaikh Thanks, man! so fast, awesome work you are doing with this lib!