Random / noise functions for GLSL

For very simple pseudorandom-looking stuff, I use this oneliner that I found on the internet somewhere: You can also generate a noise texture using whatever PRNG you like, then upload this in the normal fashion and sample the values in your shader; I can dig up a code sample later if you’d like. Also, check … Read more

How to transparent Unity3D custom shader?

Your script is probably trying to access a property named _Color to set its alpha value, but there is no _Color property on this shader, so the script fails. Also the shader is not set up to render transparency, so we’ll need to fix that. Shader properties are kind of like the public properties you expose on C# classes: … Read more