update
This commit is contained in:
BIN
material_depth_texture/Assets/checker_rough.png
Normal file
BIN
material_depth_texture/Assets/checker_rough.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 787 B |
BIN
material_depth_texture/Assets/grid.png
Normal file
BIN
material_depth_texture/Assets/grid.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 414 B |
9
material_depth_texture/README.md
Normal file
9
material_depth_texture/README.md
Normal file
@ -0,0 +1,9 @@
|
||||
Wall with a material that's reading from a depth texture, which is copied from the depth buffer before drawing the wall as the last object in the scene.
|
||||
|
||||
#### To use this in your own projects:
|
||||
|
||||
1. Enable `Material Properties > Leenkx Props > Read Depth`
|
||||
2. Make sure `Render Properties > Leenkx Render Path > Renderer > Depth Texture` is set to `Auto` or `On`
|
||||
3. Add a `Shader Data` node with a uniform sampler2D with the name `depthtex` and separate the x value from the color output
|
||||
|
||||
Note that the depth values depend on the camera far/near values! Also the compositor needs to be enabled on forward render path in order to work.
|
||||
BIN
material_depth_texture/material_depth_texture.blend
Normal file
BIN
material_depth_texture/material_depth_texture.blend
Normal file
Binary file not shown.
Reference in New Issue
Block a user