- Home /
 
               Question by 
               Voleuro · Feb 19, 2018 at 08:29 PM · 
                depthmotiondepth-buffervectors  
              
 
              How to assign depth texture to camera?
Hey everybody, I'm currently experimenting with the Motion Vectors Buffer. When I set the depthTextureMode to MotionVectors with the line:
 GetComponent<Camera>().depthTextureMode = DepthTextureMode.MotionVectors;
I always get the warning "Motion vectors require depth texture. Adding this flag to depthTexureMode". I tried to set the depthTexture via
 myCam.SetTargetBuffers(renderTex1.colorBuffer, renderTex1.depthBuffer);
But I still get the same warning. So I'm guessing this can't be the solution.
Does anyone know how to set the depth buffer correctly?
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                