- Home /
What built-in shader properties are there?
Hello.
I read that I can access a camera's depth map from a shader simply by referencing _CameraDepthTexture. Now I'm wondering what other similar hidden built-in properties there are that I don't know about and that could be of use. Shadow maps perhaps? Something else? Is there a list somewhere that I've missed?
http://docs.unity3d.com/Documentation/Components/SL-AdvancedTopics.html http://docs.unity3d.com/Documentation/Components/SL-BuiltinValues.html
but i didn't found about _CameraDepthTexture there...
Yep, that's why I was wondering. The documentation doesn't seem to quite include all the information...
I'm looking for the same answer. I found someone said _CameraDepthTexture is global shader property. the link is here: http://answers.unity3d.com/questions/59956/retrieving-depth-buffer-of-a-frame.html
Thanks for the link, but I already know about _CameraDepthTexture. I'm wondering what other similar things there are.
hi $$anonymous$$miH, i found the answer, here is the link: http://docs.unity3d.com/Documentation/ScriptReference/DepthTexture$$anonymous$$ode.Depth.html
Thanks, but that's not the answer I was looking for. I already knew about _CameraDepthTexture. I would like a comprehensive list of all other such properties.
perhaps you can check the UnityCG.cginc file to looking some built-in structs/functions. the file is located in %UNITY_HO$$anonymous$$E%/Editor/Data/CGIncludes folder.
Your answer
Follow this Question
Related Questions
Pass ShaderLab properties to Standard cginc 2 Answers
Clean up Material Properties 1 Answer
Additional blending when using properties rather than hard-coded values for colors 0 Answers
How to Add Render Queue property in Inspector to LightWeight Shader ? 1 Answer
How to force the compilation of a shader in Unity? 5 Answers