This builds a screen-sized depth texture.
这生成一个屏幕尺寸的深度纹理。
DepthTextureMode. Depth: a depth texture.
一个深度纹理。
Use it in a fragment program when rendering into a depth texture.
当渲染到深度纹理时,在片段程序中使用它。
Pixel values in the depth texture range from 0 to 1 with a nonlinear distribution.
深度纹理中每个像素所记录的深度值是从0到1非线性分布的。
When reading from depth texture, a high precision value in 0... 1 range is returned.
当读取深度纹理时,我们可以得到一个0 -1范围内的高精度值。
When rendering into the depth texture, fragment program must output the value needed.
当渲染到纹理时,片段程序必须能够输出需要的数值。
When reading from depth texture, red component of the color contains the high precision value.
当读取深度纹理时,颜色的红色部分包含高精度数值。
In particular, using depth texture in an Image Effect often needs special handling on Direct3D + Anti-Aliasing.
特别地,在开启反走样特效的Direct3D平台上,如果在图像特效中使用深度纹理需要一些特别的处理。
Camera actually builds the depth texture using Shader Replacement feature, so it's entirely possible to do that yourself, in case you need a different G-buffer setup.
照相机实际上使用着色器替换功能来生成深度纹理,因此当你需要一个不同的G -buffer设置时,你完全可以自己生成一个深度纹理。
Depth texture corresponds to Z buffer contents that are rendered, it does not use the result from the fragment program.
深度纹理对应于Z缓冲区所渲染的内容,它并不使用片段程序所输出的结果。
Depth texture corresponds to Z buffer contents that are rendered, it does not use the result from the fragment program.
深度纹理对应于Z缓冲区所渲染的内容,它并不使用片段程序所输出的结果。
应用推荐