Skip to content

TSL - Loop with boolean values doesn't work?? #30954

Open
@bandinopla

Description

@bandinopla

Description

The case of using a Loop node with a boolean node doesn't seem to be working...

Reproduction steps


Code

// This should remove all green...
 const out = vec3(0,1,0 ).toVar();
    const o = Fn(()=>{ 

        const value = float( 0 ).toVar();

        Loop( value.lessThan( 10 ), () => {
            value.addAssign( 1 );  
            out.y.subAssign( 0.1 );
        });    

        return out ; 
    });  

Live example

https://jsfiddle.net/xzonyf37/

Screenshots

No response

Version

r174

Device

Desktop

Browser

Chrome

OS

Linux

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions