NME - Modulo (%) node seems broken

Hello,

In the Node Material Editor, the Modulo node (“Mod”) seems to be broken.
As soon as it’s in use, the Shader Compilation gives error :

Shader compilation error: FRAGMENT SHADER ERROR: 0:123: '%' : wrong operand types - no operation '%' exists that takes a left-hand operand of type 'uniform highp float' and a right operand of type 'uniform highp float' (or there is no acceptable conversion) 

NME Example with this error HERE where I simply try to put 0.5%0.3 (which equals 0.2) as alpha input.

It seems to be an issue with the modulo operator itself (“%”) and the input types (“uniform highp float”)

++
Tricotou

On it!

1 Like

Fix mod by deltakosh · Pull Request #15043 · BabylonJS/Babylon.js (github.com)

1 Like

Nice.

  • Bug reported at 4.22 pm
  • Fix pushed at 7.41 pm …
  • … By the boss

Now, that’s how you run a company :grin:
You guys rock


++
Tricotou

1 Like

haha :slight_smile: I hate bugs :slight_smile: