\r\n\u003C/template>\r\n`\r\n What have I missed or mistaken? Hope to get your help.\r\n",[],150,"BatchedMesh dosn't work with the primitive component","2024-08-12T00:16:46Z","https://github.com/Tresjs/lab/issues/150",0.6862709,{"description":2945,"labels":2946,"number":2947,"owner":2857,"repository":2923,"state":2932,"title":2948,"updated_at":2949,"url":2950,"score":2951},"### Description\n\nAs a developer using Tresjs I would like to have a simple way to add sparkles as a component\n\n### Suggested solution\n\nSimilar to: https://github.com/pmndrs/drei#sparkles\n\n### Alternative\n\nAny other alternative is considered\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/cientos/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/cientos/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://cientos.tresjs.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/cientos/issues) that reports the same bug to avoid creating a duplicate.",[],221,"Sparkles","2023-11-09T19:27:14Z","https://github.com/Tresjs/cientos/issues/221",0.68984014,{"description":2953,"labels":2954,"number":2955,"owner":2857,"repository":2923,"state":2932,"title":2956,"updated_at":2957,"url":2958,"score":2959},"### Description\n\nA new fancy material similar to https://playground.tresjs.org/experiments/glass-material.\r\n\r\nExtending from physical material, with some capabilities\n\n### Suggested solution\n\nAn abstraction of https://playground.tresjs.org/experiments/glass-material\r\nbased on: https://tympanus.net/codrops/2021/10/27/creating-the-effect-of-transparent-glass-and-plastic-in-three-js/\n\n### Alternative\n\n_No response_\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/cientos/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/cientos/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://cientos.tresjs.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/cientos/issues) that reports the same bug to avoid creating a duplicate.",[],159,"Glass material","2023-08-24T05:01:58Z","https://github.com/Tresjs/cientos/issues/159",0.69669336,{"description":2961,"labels":2962,"number":2973,"owner":2857,"repository":2874,"state":2932,"title":2974,"updated_at":2975,"url":2976,"score":2977},"### Describe the bug\r\n\r\nThis code logs `state.controls` null even if there is a Control in the scene (for example OrbitControls)\r\n\r\n```\r\nconst { onBeforeRender, pause, resume } = useLoop()\r\n\r\nconst updateCallback = (state) => {\r\n if (!sphereRef.value) { return }\r\n console.log(state.controls)\r\n sphereRef.value.position.y += Math.sin(state.elapsed) * 0.01\r\n}\r\n```\r\n\r\nThe problem is here https://github.com/Tresjs/tres/blob/0720d186e92ca9faa9e5f4e51a3269504bed2a09/src/composables/useLoop/index.ts#L18C4-L27C5\r\n\r\nWe are creating an snapshot of the time the `useLoop` is used, which doesn't contain the updated controls. \r\n\r\n\r\n\r\n### Reproduction\r\n\r\nlocal playground\r\n\r\n### Steps to reproduce\r\n\r\n_No response_\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: macOS 14.3.1\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 69.00 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm\r\n pnpm: 8.15.4 - ~/Library/pnpm/pnpm\r\n bun: 1.0.2 - ~/.bun/bin/bun\r\n Browsers:\r\n Brave Browser: 120.1.61.116\r\n Chrome: 124.0.6367.208\r\n Safari: 17.3.1\r\n npmPackages:\r\n @tresjs/cientos: 3.8.0 => 3.8.0 \r\n @tresjs/core: workspace:^ => 4.0.0-rc.1 \r\n @tresjs/leches: 0.15.0-next.3 => 0.15.0-next.3\r\n```\r\n\r\n\r\n### Used Package Manager\r\n\r\npnpm\r\n\r\n### Code of Conduct\r\n\r\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/tres/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/tres/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://tresjs.org/guide).\r\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/tres/issues) that reports the same bug to avoid creating a duplicate.\r\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[2963,2964,2967,2970],{"name":2919,"color":2920},{"name":2965,"color":2966},"v4","7980EA",{"name":2968,"color":2969},"p4-important-bug","D93F0B",{"name":2971,"color":2972},"regression","167F7A",686,"`useLoop` callback state missing controls","2024-05-23T12:17:31Z","https://github.com/Tresjs/tres/issues/686",0.71296686,["Reactive",2979],{},["Set"],["ShallowReactive",2982],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fesRaiDGvkSMUYj0gWrk-tYQNh1-kzEoBiiyX4KZCaFM":-1},"/Tresjs/post-processing/125"]