![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
渲染
unity工具人
林深时见鹿 海蓝时见鲸
展开
-
unity无锯齿遮罩shader
unity自带的mask组件很low,会有明显的锯齿感,而用shader可以在大多数情况下避免这种现象如下图,左侧为unity自带Mask的效果,右侧为shader效果,有一些细微的区别Shader "Custom/CircleMask" { Properties { _MainTex ("MainTex", 2D) = "white" {} _MaskTex ("MaskTex", 2D) = "white" {} [HideInInspect原创 2021-10-12 22:30:00 · 1322 阅读 · 0 评论 -
Unity-Shader-接触边界发光
Shader "Kaima/Depth/IntersectionHighlight"{ Properties { _MainTex ("Texture", 2D) = "white" {} _IntersectionColor("Intersection Color", Color) = (1,1,0,0) _IntersectionWidth("Intersection Width", Range(0, 1)) = 0.1 } SubShader { Tags { "Rende原创 2021-08-22 23:34:17 · 504 阅读 · 0 评论 -
Shader-马赛克
001{ "m_SerializedProperties": [ { "typeInfo": { "fullName": "UnityEditor.ShaderGraph.Vector1ShaderProperty" }, "JSONnodeData": "{\n \"m_Name\": \"Offset\",\n \"m_GeneratePropertyBlock原创 2021-08-17 20:22:24 · 232 阅读 · 0 评论 -
unity shader 单独给物体设置指定的反射贴图
//jave.lin 2019.06.17//simple illuminationShader "Custom/MyReflection"{ Properties{ [NoScaleOffset] _MainTex("Main Tex", 2D) = "white" {} [NoScaleOffset] _ReflectCube("Reflect Cube", Cube) = "white" {} _ReflectIntensity("Reflection Intensity", Ra转载 2022-01-26 15:15:29 · 480 阅读 · 0 评论 -
Unity-Shader-溶解
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'Shader "Kaima/Dissolve/BlendOriginColor"{ Properties { _MainTex ("Texture", 2D) = "white" {} _NoiseTex("Noise", 2D) = "white" {} _Threshold("Threshold", Range(0.0,原创 2021-08-22 23:33:34 · 474 阅读 · 0 评论 -
Unity-Shader-全息
//1. Transparent//2. Rim//3. Intersection HighlightShader "Kaima/Depth/ForceField"{ Properties { _MainColor("Main Color", Color) = (1,1,1,1) _RimPower("Rim Power", Range(0, 1)) = 1 _IntersectionPower("Intersect Power", Range(0, 1)) = 0 } SubS原创 2021-08-28 08:36:31 · 408 阅读 · 0 评论 -
unity 反射探针(Reflection Probe)
GameObject–>Light–>Reflection Probehttps://zhuanlan.zhihu.com/p/438022045转载 2022-02-28 11:30:47 · 2131 阅读 · 0 评论