-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raycast on a WebGPU Line2 / Line2NodeMaterial breaks #29986
Comments
|
The onBeforeRender( renderer ) {
renderer.getViewport( _viewport );
this.resolution.set( _viewport.z, _viewport.w );
} |
To clarify there is a WebGPU version of https://github.com/mrdoob/three.js/blob/dev/examples/jsm/lines/webgpu/LineSegments2.js However, the idea of using |
This one works, Created a Vector2 on the LineSegments2 mesh, Updated on onBeforeRender : Is this what you meant with the onBeforeRender ? Shall this vector2 be a property of the mesh ? |
This looks good to me. Would like filing a PR? |
Description
Raycasting a Line2 imported from WebGPU + Line2NodeMaterialbreaks
Because Line2NodeMaterial.resolution does not exists
Live example
Live Fiddle Link
Screenshots
Version
last
Device
Desktop
Browser
Chrome
OS
Windows, MacOS
The text was updated successfully, but these errors were encountered: