Closed animanoir closed 2 years ago
i'm having trouble finding the documentation but there's a .glsl() function that you can use instead of .out() to get shader code
.glsl()
.out()
shader = solid(0,0,1) shader.out() console.log(shader.glsl()[0].frag)
preview: https://hydra.ojack.xyz/?code=c2hhZGVyJTIwJTNEJTIwc29saWQoMCUyQzAlMkMxKSUwQXNoYWRlci5vdXQoKSUwQWNvbnNvbGUubG9nKHNoYWRlci5nbHNsKCklNUIwJTVELmZyYWcpJTBBJTBBJTJGJTJGJTIwb3BlbiUyMGNvbnNvbGUlMjBpbiUyMGJyb3dzZXIlMjB0byUyMHNlZSUyMGZyYWdtZW50JTIwc2hhZGVyJTIwY29kZQ==
awesome! exactly what I needed. thanks!
i'm having trouble finding the documentation but there's a
.glsl()
function that you can use instead of.out()
to get shader codepreview: https://hydra.ojack.xyz/?code=c2hhZGVyJTIwJTNEJTIwc29saWQoMCUyQzAlMkMxKSUwQXNoYWRlci5vdXQoKSUwQWNvbnNvbGUubG9nKHNoYWRlci5nbHNsKCklNUIwJTVELmZyYWcpJTBBJTBBJTJGJTJGJTIwb3BlbiUyMGNvbnNvbGUlMjBpbiUyMGJyb3dzZXIlMjB0byUyMHNlZSUyMGZyYWdtZW50JTIwc2hhZGVyJTIwY29kZQ==