how can i read the openGL code which is converted from Unity 3d

As it is known that Unity3D is converted to OpenGL which in return can be read by GPU…

My question is this,

Is there any tool or program that can read this OpenGL code.

Unity does not convert anything to OpenGL. The run-time on Mac and the mobile devices will call into the OpenGL API. If you have a tool that can intercept these calls then you can find out what Unity is doing. This will be a very specialised task.

There is nothing converted. OpenGL is a Open Graphics Library, it’s “just” a programming interface that enables you to use the grapics card’s functions. On Windows machines Unity uses DirectX in the first place. On mobile platforms OpenGL ES which is just a small subset of OpenGL. WebGL is based on OpenGL ES but Unity don’t use or support WebGL.

I don’t see what you want to compare? Even the interfaces work differently. Comparing the function calls of a random WebGL application with those executed by Unity is quite useless. It’s like comparing the opcodes from MS Word with those from Crysis. Well i suggest they will be differently.

You can of course hook into the OpenGL driver itself by a wrapper dll to do some crazy stuff or gather general statistics, but comparing them with something totally different is still useless.

Maybe you can go a bit more in detail what’s your actual target, what you want to achieve.