glsl - Is there any method to hide shader used in web application from being inspect by shader editor or orther tools -
i digging 3d web application vr. , want hide shader being inspected firefox shader editer , webgl inspector. used way uglify shader , put shader in return function rather in var. none of them works.
so, there method hide web application's shader?
the answer simple, no there isn't
just printing out shaders pretty easy. has write extension this
webglrenderingcontext.prototype.shadersource = function(origfn) { return function(shader, src) { console.log(src); origfn.call(this, shader, src); }; }(webglrenderingcontext.prototype.shadersource); even if did find way prevent looking @ shader in inspector run system level tools microsoft's pix, or apple's opengl profiler. run browser using osmesa , compile print out shaders. chrome runs osmesa part of testing setup. trivial make print out shaders, use run/view website.
the better question why care? people inspect shaders time, even in aaa games. people can decompile assembly language if want. shaders not special. you're wasting time trying prevent them being inspected.
Comments
Post a Comment