Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSL infinity loop #29969

Open
Makio64 opened this issue Nov 26, 2024 · 1 comment
Open

TSL infinity loop #29969

Makio64 opened this issue Nov 26, 2024 · 1 comment
Assignees
Labels
Enhancement TSL Three.js Shading Language

Comments

@Makio64
Copy link
Contributor

Makio64 commented Nov 26, 2024

Description

Create an attribute and name it the same than the attribute name using toVar( name ) create infinity loop in the NodeBuilder

Reproduction steps

see jsfiddle / code below

Code

const counters = attribute( 'counters', 'float' ).toVar( 'counters' ) // work with toVar('aCounters')
this.vertexNode = Fn( () => {
    varyingProperty( 'float', 'vCounters' ).assign( counters )
}) ()

Live example

https://jsfiddle.net/Makio64/yp7tw0j1/3/

Screenshots

No response

Version

r170

Device

No response

Browser

No response

OS

No response

@Mugen87 Mugen87 added the TSL Three.js Shading Language label Nov 26, 2024
@sunag
Copy link
Collaborator

sunag commented Dec 13, 2024

Related: #29977 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement TSL Three.js Shading Language
Projects
None yet
Development

No branches or pull requests

3 participants