Skip to content

LineMaterial VS Line2NodeMaterial #32229

@menghuaa

Description

@menghuaa

### Description

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.mul(window.devicePixelRatio), window.innerHeight.mul(window.devicePixelRatio)). And the examples https://threejs.org/examples/?q=line#webgpu_lines_fat and https://threejs.org/examples/?q=line#webgl_lines_fat use the same linewidth, but the result is different

Screenshots

No response

Version

181

Device

Desktop

Browser

Chrome

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions