Shaders are one of the main parts of the resources, and I was wondering how can I prevent the end user from seeing them.
Ok, so let me explain a little bit more.
The game I've been creating has a couple of HLSL shaders(also GLSL shaders) which I've been compiling at run-time from their respective HLSL/GLSL files. Now the problem with this is that anybody can actually see my shaders' code by just going into the folder of my game.
What can I do to prevent this? I was thinking hard coding them after I've thoroughly tested them, by this I mean copying the tested code into a stream I will create at run-time and compile the shaders from memory instead. But it seems a little too much. Although completely possible, I was wondering if there was a better way?
Ok, so let me explain a little bit more.
The game I've been creating has a couple of HLSL shaders(also GLSL shaders) which I've been compiling at run-time from their respective HLSL/GLSL files. Now the problem with this is that anybody can actually see my shaders' code by just going into the folder of my game.
What can I do to prevent this? I was thinking hard coding them after I've thoroughly tested them, by this I mean copying the tested code into a stream I will create at run-time and compile the shaders from memory instead. But it seems a little too much. Although completely possible, I was wondering if there was a better way?
Intel i7 3930k
8GB Mushkin LP @ 2133 mhz
GTX 680
Asus Rampage IV Extreme
Corsair 650w
8GB Mushkin LP @ 2133 mhz
GTX 680
Asus Rampage IV Extreme
Corsair 650w