Does somebody know, how to get access to the View Space Normals of an object or, atleast i think this is the same, how to access the DepthTextureNormals? (I’m using deffered rendering, so it should already be there somewhere)
You’re going to have to be more specific about where you want to access the normals from. The answer is very different if you’re doing it from a surface shader on the object in question or in a separate transparent object or post process.
If the object is opaque and you’re rendering using deferred, then the _CameraDepthNormalsTexture doesn’t exist yet when that object is being rendered. More specifically, in deferred, when the object is rendering it’s writing to the world normals gbuffer which is then used to generate that _CameraDepthNormalsTexture, though you really shouldn’t use it for anything when you’re rendering deferred since you already have that world normals gbuffer which has a much higher accuracy.
However, when you’re rendering the actual object, there’s no good reason to access those textures since the object has its actual normals already.
Thx bgolus, that made things more clear for me!