math.max in webgl

34 views
Skip to first unread message

webgllearn

unread,
Aug 29, 2022, 7:36:58 PMAug 29
to WebGL Dev List
hi, 
I want to know what is how i can type this javascript code in webgl

maxrgb = Math.max(Math.max(r, g), b); 

when i use above javascript code in webgl script, it not works 
 i try float maxrgb = Math.max(Math.max(r, g), b);   
but it also not works 

So how to write above code in webgl ?
please help.!
Reply all
Reply to author
Forward
0 new messages