Skip to content

TSL : vec4.equal return vec4<bool> instead of bool #30755

@Makio64

Description

@Makio64

Description

Discard( color.equal(vec4(0)) )

error :

if statement condition must be bool, got vec4<bool>
if ( ( nodeVar1 == vec4<f32>( 0.0, 0.0, 0.0, 0.0 ) ) ) {

I'm not sure it's intend or not ? I also tried to add a bool(..) around the equal but without success

Reproduction steps

  1. execute similar tsl

Code

see above

Live example

X

Screenshots

X

Version

r175dev

Device

No response

Browser

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    TSLThree.js Shading Language

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions