Skip to content

TextSprite does not work well with THREE.SpriteMaterial({sizeAttenuation: false}) #28

@nitenzhao

Description

@nitenzhao

It works well without a THREE.SpriteMaterial, but when I want to have a fixed size of text, by using a SpriteMaterial with sizeAttenuation=false, the text becomes very large, and cannot been see in the screen.

  var text = new TextSprite(
    {
      text: userData.title,
      fontSize: 3,
      color: "blue"
    },
    new THREE.SpriteMaterial({
      sizeAttenuation: false
    })
  );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions