math.max in webgl

48 views
Skip to first unread message

webgllearn

unread,
Aug 29, 2022, 7:36:58 PM8/29/22
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