diff --git a/src/core/README.md b/src/core/README.md index 0f92849..e0731f3 100644 --- a/src/core/README.md +++ b/src/core/README.md @@ -1,7 +1,31 @@ -Changelog: +## TODO +- [X] Document raycaster component +- [ ] Document new events/props on Object3D +- [ ] Click events on Raycaster +- [ ] Click events on Object3D + +## Changelog ### Raycaster component +See [here](https://troisjs-instancedcolors.netlify.app/) for an example ([source](https://github.com/SaFrMo/trois-examples/blob/instanced-colors-standalone-demo/src/components/InstancedColors/InstancedColors.vue)). + +```html + + + + +``` + ### Deprecations diff --git a/src/core/Raycaster.js b/src/core/Raycaster.js index b6435ed..1c06d45 100644 --- a/src/core/Raycaster.js +++ b/src/core/Raycaster.js @@ -64,6 +64,8 @@ export default { this.raycasterCamera = parent.camera; parent = parent.$parent; } + } else { + this.raycasterCamera = this.camera; } // add event listeners