Using the material onBeforeComplete method for coloring, for example: (1) I add the same model twice and then assign two different shaders simultaneously, resulting in only one shader being applied to both models,(2) The two models are different, but the materials may be similar. The two models are assigned different shaders and only cover and apply one type of shader.(3) Objects generated using THREE.js materials, such as basic materials, standard materials, etc., have created N objects using these materials and assigned different shaders to each of them. However, there is also a problem where the shaders will only cover one of them
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Problem with one shader for multiple materials | 1 | 664 | September 18, 2020 | |
| One mesh have two ShaderMaterial? | 10 | 1840 | January 31, 2023 | |
| Making two material with same shader | 14 | 834 | February 10, 2023 | |
| Sharing one material across multiple objects using onBeforeRender() | 5 | 3696 | April 21, 2023 | |
| Adding unique shader to a dynamically loaded 3D model, possible? onBeforeCompile confusion? | 8 | 1212 | December 22, 2019 |