Skip to content

Better support for disabled SpriteMaterial.sizeAttenuation #37

Open
@tobiasgeissler

Description

@tobiasgeissler

I have a use case where I don't want the sprite to change its size when rotating the camera around the scene. There is the sizeAttenuation property on the SpriteMaterial which can be disabled to achieve this. However, when I set the property to false on the SpriteText's material the object gets oversized due to the internal scaling. I get it to work by down-scaling the sprite again after it has been created, but it would be nice if there was a better way to handle this out-of-the-box.

Here is a fiddle to demonstrate the problem: https://jsfiddle.net/utdpc4bo/1/

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