当前位置:网站首页>Mr developed by unity3d realizes model occlusion and transparent ground receiving shadow
Mr developed by unity3d realizes model occlusion and transparent ground receiving shadow
2022-06-10 12:53:00 【Leoysq】
One 、 Realize the occlusion model of real scene
principle : Build a patch and place it at the corresponding position to block the virtual model, and then make the patch transparent and not display
structure Shader Code , Will change shader Assign to material , Give the material to the patch that needs to block others . The following methods do not apply to baking .
effect :

The code is as follows :
Shader "Custom/mask"
{SubShader
{
Tags{ "RenderType" = "Opaque" "Queue" = "Geometry-3" }ColorMask 0
ZWrite onCGINCLUDE
#include "UnityCG.cginc"struct appdata
{
float4 vertex : POSITION;
};struct v2f
{
float4 pos : SV_POSITION;
};v2f vert(appdata v)
{
v2f o;
o.pos = UnityObjectToClipPos(v.vertex);
边栏推荐
- Start with interpreting the code automatically generated by BDC, and explain the program components of sapgui
- 2022年浙江省赛
- Can chip learning of max3051
- (8) Initialization list
- 如何才能把团队给带解散。。。
- Driver. JS - open source and independent interactive guidance tool library for web novices, powerful and highly customizable
- Colmap source code reading notes [1] threading cc
- STM32 learning notes (2) -usart (basic application 1)
- 极简随机音乐播放器
- 性能测试方案(计划)模板
猜你喜欢

JS converts timestamp to normal time format

IQR箱线图

Technology sharing | quick intercom, global intercom

MySQL master database operation large table DDL, slave database crash and system parameter error setting

JTAG-to-AXI Master调试AXI BRAM Controller

Altium Allegro PADS到底该选哪个EDA设计软件

ASP. Net using imagemap control to design navigation bar

(十 一)const修飾成員函數

Tidb elementary course experience 8 (cluster management and maintenance, adding a tikv node)

PCB learning notes (2) -3d packaging related
随机推荐
SLM4054独立线性锂电池充电器的芯片的学习
JS use the Icheck plug-in to listen and get the value of the checkbox
VDO-SLAM源码阅读笔记[2] local optimization和global optimization
Gimp - free and open source image processing software with powerful functions, known as an excellent substitute for Photoshop
C # implement bubble form
使用SoapUI工具生成发送短信接口代码
Program, calculate 2/1+3/2+5/3+8/5 Value of. It is required to calculate the sum of the first n items and keep 2 decimal places (starting from the second item of the sequence, the numerator of each it
Can qiniu open an account? Is it safe to open an account in qiniu
Add line number field to SQL query results - sqlserver
Which EDA design software should Altium Allegro pads choose
Slide the navigation fixed head upwards
VS2010 undefined identifier round
MAX3051的can芯片的学习
How can the team be dissolved...
(10) Notes on null pointer accessing member function and this pointer
用C语言创建基本的栈与队列
FM4057S单节锂电池线性充电芯片的学习
Tidb Primary course experience 8 (Management Maintenance of Clusters, add a tikv Node)
VDMA commissioning summary
Recommended learning materials for Altium Designer