Shader locations

Ummm… I used to know but can’t recall where Unities default shaders are kept? Also, if I create a new shader and want it to appear in Unities shader pop-up menu were do I put it?!

many thanks,
Richard.

They’re here.

When writing a shader, you start it by something like

Shader "MyShaders/MySuperShader" { ... }

This would make the shader appear as MySuperShader in MyShaders submenu. Take a look at shader archive on Unify wiki.

Ah! - Ok - I was thinking they were in one of the asset folders. Did’t realise the name of the shader actually represented the path to the shader - neat!

many thanks,
Richard.