lamina
lamina copied to clipboard
🍰 An extensible, layer based shader material for ThreeJS
Hello, I want to create a PBR material that blends two normals maps. The first one should use uv index 0 and the second one should use uv index 1....
Is it possible to make the black part of the fresnel transparent just like in Spline?
clone material is not same as origin material ``` const material = new LayerMaterial({ color: new THREE.Color(0xff0000), lighting: 'physical', }); const cube = new THREE.Mesh(geometry, material.clone()); ``` ##### Wrong Result,...
# Running Changelog - [**BREAKING**] Remove the requirment of passing non-uniforms to `args` - This would cause re-renders and complicate the code - `Abstract` will now auto-generate setters/getters for non-uniforms...
It's great that Lamina layers can also provide vertex shaders that modify the vertex positions, but unless I've severely misunderstood something (and please tell me if I did), the way...
I'm running into this error while using the current version of `@react-three/fiber` (first affected version is `8.0.21`). For example, updating the dependencies in the `complex-material` leads to the following: `yarn.lock`:...
Adding flatShading prop to the LayerMaterial doesn't affect the shading. Left: `` Right: ` ` https://codesandbox.io/s/lamina-matcap-ho7v4z?file=/src/App.js
Fantastic lib! I'm using it in my svelte-kit app (with pnpm). First I get these worrying error messages, is there a way to only import the vanilla parts of this?...
I noticed that the `DebugLayerMaterial` code adds ~50KB gzipped to my production js bundle even if I'm not using the debug layer. Looks like the main reason is because it's...
It took me a few hours to figure it out using the src ```tsx // src/layers/CustomLayer/index.tsx import { forwardRef } from "react"; import { Abstract } from "lamina/vanilla"; import {...