{"repo":"FarazzShaikh/three-shader-baker","free":true,"listed":false,"github":"https://github.com/FarazzShaikh/three-shader-baker","clone":"git clone https://github.com/FarazzShaikh/three-shader-baker.git","description":"🍰 Bake your Three.js shaders or materials into textures!","language":"TypeScript","stars":179,"topics":["baking","materials","shaders","threejs","webgl"],"license":"AGPL-3.0","category":"game-templates","readme_excerpt":"THREE Shader Baker Bake your Three.js shaders or materials into textures! Here, ThreeJS fragment shaders are exported out as textures which are then used in Blender. This demo is real! Give it a click. Shader Baker lets you export your Three.js shaders or materials as textures. This is useful when you want to use the same shader in other 3D software like Blender, Unity, etc. You can also use the exported textures in other Three.js shaders/materials to save on performance. It supports both Vanilla and React! Show Vanilla example Show React example License This project is licensed under the AGPL-3.0 License. See the LICENSE file for details.Please email me at farazzshaikh@gmail.com if you would like to use this library under a different license. Installation Helpers (React only) You can set the following helpers on THREE.Mesh.userData to control the baking process: - shaderBaker isExcluded - Set this to true to exclude the mesh from baking. - shaderBaker size - Set this to a number to override the size of the baked texture for this mesh. Can be used to bake different textures at different resolutions. Gotchas - (React only) The bake functions from const { bake } = useShaderBaker() is memoized. Make sure to pass it as a dependency in your useEffect hook otherwise it will unnecessary state updates. - (React only) The order of priority for the size prop is as follows: 1. shaderBaker size on the mesh 2. size parameter in the bake function 3. size prop on the component - Lighting is","default_branch":null,"files":null,"tree":[],"storefront":"/r/FarazzShaikh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/FarazzShaikh/three-shader-baker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}