Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Mar 27, 2023

Fixed #17511.

Description

This PR makes LineBasicMaterial more glTF conform so lines can sample color values from a texture. The 005.glb asset from #17511 is now rendered as expected.

image

@github-actions
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize Gzipped Diff from dev
618.8 kB 154.7 kB +282 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize Gzipped Diff from dev
410.5 kB 100.9 kB +253 B

@Mugen87 Mugen87 added this to the r151 milestone Mar 27, 2023
@donmccurdy
Copy link
Collaborator

For posterity – glTF leaves materials for points and lines unspecified. Lines in glTF files may contain normal glTF materials, and we are allowed to implement as much of the material spec for lines as we feel appropriate.

I'm in favor of supporting .map, but see no need to go further in supporting PBR properties on lines.

@mrdoob mrdoob merged commit 2745552 into mrdoob:dev Mar 28, 2023
@niranjan2503

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GLTFLoader: Support map in LineBasicMaterial

4 participants