stackgl / glsl-transpiler

Transpile GLSL to JS
http://stackgl.github.io/glsl-transpiler/
175 stars 21 forks source link

Question: Change compiler result #51

Closed Reon90 closed 1 year ago

Reon90 commented 4 years ago

Could you please describe, can I change the result of the compilation and get a string from that? e.g.:

var source = 'bool xxx() { return true }'
compile(source)
var compiler = compile.compiler
compiler.functions.xxx = 'bool xxx() { return false }'
var newSourse = compiler.combine() // newSourse contains 'bool xxx() { return false }'
dy commented 1 year ago

Not sure I understand the issue. If you can rephrase. Closing for now.