
Shader
程序员正茂
好好干活
展开
-
Unity Shader剖切管道隧道
CrossSection无法满足要求。 1.在section_clipping_CS.cginc新增_TubeLens,表示管道长度 #if CLIP_TUBES uniform float4 _AxisDirs[64]; uniform float _TubeLens[64];//新增 #endif 2.修改裁剪代码 #if CLIP_TUBES bool _clipTubes = false; int _centerCountTruncated = min(_center..原创 2021-12-02 17:19:18 · 819 阅读 · 0 评论 -
Unity shader始终显示被遮挡物体
Shader "Custom/PathNode" { Properties{ _Color("Color", Color) = (1,1,1,1) _MainTex("Albedo (RGB)", 2D) = "white" {} } SubShader{ Cull Off Pass { ZTest Greater } Pass { ZTest Less } Pass { ZTest Always } Tags { ...原创 2021-12-02 09:43:30 · 1542 阅读 · 0 评论