I was playing with your processor and ran into some issues.
Here is a reduced shader I would like to compile:
int h() { return 0; }
int g() { return 255; }
#define g h
void main(){ g(); }
And here is the generated code:
int a(){return 255;}
#define g h
void main(){a();}
Is full preprocessor support planned?
Cheers,
David Sheets
I am more doubtful about the obfuscation part: most practical shaders
are very short and self-contained programs, so I don't see anything
that can prevent disassembly from being entirely successful and easy.
This isn't specific to WebGL, affects equally OpenGL and Direct3D.
Cheers,
Benoit
2012/1/4 Roy Williams <rowi...@google.com>: