::Hiding shader code::

vindos

Newcomer
:?:Hello

I need to create a dll that uses a shader( CgFX and Opengl ). I dont want the user of my dll to view my shader code. Please suggest the best way of implementing such a requirement.
I could see just two API calls for compiling a shader but both doesnt seem to serve my purpose.

Thanks n Advacne:D
 
By use of man-in-the-middle layers, users will always be able to see what you're submitting to the shader compiler. Therefore encoding and encrypting your shader code will only stop the inexperienced users.
 
The above applies for both DX and OGL also. Further, code obfuscation at a shader level would be quite detrimental to performance, so I'm not sure you'd get very far with anything at all...
 
Back
Top