glslEditor icon indicating copy to clipboard operation
glslEditor copied to clipboard

how to console.log?

Open LazerJesus opened this issue 3 years ago • 1 comments

hi, thank you for the book. i am running the electron version locally and would like to output values to the console. how would i go about that?

LazerJesus avatar Feb 24 '21 19:02 LazerJesus

I believe that you can't log values in glsl code. One way to debug would be to return the vector that you're working on as the color. The other way is to use the timeline test feature in the editor. You won't get the exact values, but you'll know approximately what you're working with. I haven't checked the documentation yet to see if there is an actual way to check the values, but I doubt it.

Mekolaos avatar Mar 27 '21 12:03 Mekolaos