hello, I found that the resolution used by LineMaterial vertexShader is (window.innerWidth, window.innerHeight).But the resolution used by LineNodeMaterial vertexNode is (viewport.z,viewport.w).The (viewport.z,viewport.w) is (window.innerWidth window.devicePixelRatio, window.innerHeight window.devicePixelRatio).Why is this happening? Will this result in any differences in the display effect of the line?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Trying to draw thick line using Line2 but can't access to material.resolution | 2 | 2271 | May 29, 2023 | |
| Line2NodeMaterial and vertexNode | 7 | 147 | September 14, 2025 | |
| Keeping LineBasicMaterial in the same width regardless of camera position | 12 | 3782 | May 19, 2023 | |
| LineMaterial linewidth affected by aspect ratio? | 2 | 436 | February 15, 2024 | |
| Keep dashed Line2 / LineMaterial dashScale constant wrt camera view | 0 | 629 | October 24, 2022 |