Skip to content

SpriteNodeMaterial scaleNode accept vec2 #30539

@Makio64

Description

@Makio64

Description

scale = scale.mul( float( scaleNode ) );

In SpriteNodeMaterial the scaleNode is convert to float before mutliply the scale (vec2).

It works in most case but in certain setup with orthographic & renderTarget the user might want to correct aspect ratio using a different x / y in scaleNode.

If it's ok to you I can do a PR to support this use case.

Reproduction steps

X

Code

scale = scale.mul( float( scaleNode ) );

to

scale = scale.mul( vec2( scaleNode ) );

Live example

X

Screenshots

X

Version

r173

Device

No response

Browser

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions