- 博客(25)
- 收藏
- 关注
原创 Unity3D Shader:径向模糊
C#代码:using System.Collections;using System.Collections.Generic;using UnityEngine;public class blur_power : MonoBehaviour { [Range(0, 1f)] public float blurPower = 0.1f; [Range(0, ...
2018-10-09 20:10:36
702
1
原创 Unity3D Shader:高亮
C#代码:using System.Collections;using System.Collections.Generic;using UnityEngine;public class Bloom : MonoBehaviour { //全屏泛光 public Material mat; public int downscale;//分辨率 pu...
2018-07-27 11:06:21
2428
1
原创 Unity3D Shader:景深
C#代码:using System.Collections;using System.Collections.Generic;using UnityEngine;public class JingShen : MonoBehaviour { public Material mat; [Range(0f, 100f)] public float focalD...
2018-07-27 10:53:46
1468
原创 Unity3D Shader:高斯模糊
C#代码:using System.Collections;using System.Collections.Generic;using UnityEngine;public class GaoSiMouHu : MonoBehaviour { //高斯模糊 正态分布 public Material mat; public float radio=1f;...
2018-07-16 14:33:19
518
原创 Unity3D Shader:消散
Shader "Unlit/Test"{Properties{_MainTex ("Texture", 2D) = "white" {}_MainColor("MainColor",COLOR)=(1,1,1,1)_Hold("Hold",Range(0,1))=0_AddTex("AddTex",2D)="white"{}_AddColor(&quo
2018-07-10 14:31:53
2296
2
原创 Unity3D Shader:溶解
Shader "Unlit/Test"{Properties{_MainTex ("Texture", 2D) = "white" {}_MainColor("MainColor",COLOR)=(1,1,1,1)_AddTex("AddTex",2D)="white"{}_DiffColor("DiffColor",COLOR)=(1,1,1,1)_
2018-07-10 14:29:11
1025
原创 Unity3D Shader:动态翅膀
Shader "Unlit/Test"{Properties{_MainTex ("MainTex", 2D) = "white" {} //主纹理图_MainColor("MainColor",COLOR)=(1,1,1,1) //颜色_Mask("Mask",2D)="white"{} //遮罩图_NoiseMask("NoiseMask",2D)=
2018-07-05 14:23:57
1799
原创 Unity3D Shader:碰撞波纹
Shader "Unlit/Test"{Properties{_MainTex ("Texture", 2D) = "white" {}_MainColor("Color",COLOR)=(1,1,1,1)_RingColor("RingColor",COLOR)=(1,1,1,1)_RingColorIntensity("RingColorIntensity",float
2018-07-01 17:50:55
1591
1
原创 Unity3D Shader:宝石反射
Shader "Unlit/Test"{Properties{_MainColor("MainColor",COLOR)=(0,0,0,1)[NoScaleOffset]_MainCUBE ("MainCUBE", CUBE) = "white" {}_RefStreng("RefStreng",Range(0,2.0))=0_Enviorenment("Enviorenment&q
2018-06-25 16:23:08
4348
原创 Unity3D Shader:夜视
shader代码:Shader "Unlit/Test"{Properties{_MainTex ("Texture", 2D) = "white" {}}SubShader{Tags { "RenderType"="Transparent" "Queue"="AlphaTest" "IgnoreProjector"="
2018-06-25 10:37:30
1011
原创 Unity3D Shader:动态星空
Shader "Unlit/Test"{Properties{[Gamma][Header(CubeMap)]_MainColor("MainColor",COLOR)=(0.5,0.5,0.5,1)_Spec("Spec",Range(1,8))=1[NoScaleOffset]_Tex("CubeMap",CUBE)="black"{}[Header(Rotation)][To...
2018-06-22 17:22:14
5588
1
原创 Unity3D Shader :图标
Shader "Unlit/Test"{Properties{_MainTex ("Texture", 2D) = "white" {}}SubShader{Tags { "RenderType"="Opaque" }LOD 100Pass{CGPROGRAM#pragma vertex vert#pragma fragment frag#include "U.
2018-06-19 18:59:48
567
原创 Unity3D Shader :Julia集
Shader "Unlit/Test"{Properties{_MainTex ("Texture", 2D) = "white" {}_Cx("Cx",Range(-0.8,0.375))=-0.8_Cy("Cy",Range(-1,1))=0.15_scale("scale",Range(1,3))=1.6}SubShader{Tags { "Rend
2018-06-19 18:54:09
344
原创 Unity3D Shader :浮雕
Shader "Custom/Test" {Properties {_Color ("Color", Color) = (1,1,1,1)_MainTex ("Albedo (RGB)", 2D) = "white" {}}SubShader {pass{Tags{"LightMode"="ForwardBase"}Cull offCGPROGRAM#pragma v
2018-06-19 18:44:27
880
原创 Unity3D Shader :水滴效果
Shader 代码Shader "Unlit/Test"{Properties{_MainTex ("Texture", 2D) = "white" {}_MainColor("Color",COLOR)=(1,1,1,1)}CGINCLUDE#include "UnityCG.cginc"uniform sampler2D _MainTex;uniform float ...
2018-06-14 08:35:46
6951
原创 Unity3D Shader : 透视
Shader "Custom/Test" {Properties {_Color ("Color", Color) = (1,1,1,1)_MainTex ("Albedo (RGB)", 2D) = "white" {}_Glossiness ("Smoothness", Range(0,1)) = 0.5_Metallic ("Metallic", Range(0,1))
2018-06-13 19:36:24
2858
原创 Unity3D Shader :水面波纹
Shader "Unlit/Test"{Properties{_MainTex("MainTex",2D)="white"{}_MainColor("MainColor",COLOR)=(1,1,1,1)_AddTex("AddTex",2D)="white"{}_Maxset("Max",Range(0.1,1.0))=0.1}SubShader
2018-06-13 19:30:36
5890
1
原创 Unity3D Shader :渐变
Shader "Hidden/Test"{Properties{_MainTex ("Texture", 2D) = "white" {}_FadeNear("FadeNear",float) = 35_FadeFar("FadeFar",float) = 40}SubShader{Tags{"RenderType" = "Transparent"
2018-06-13 19:08:22
2604
原创 Unity3D Shader :模糊效果
Shader "Unlit/Test"{Properties{_MainTex ("Texture", 2D) = "white" {}_Offset("Offset",Range(0.000,0.010))=0.000}SubShader{Tags { "RenderType"="Opaque" }LOD 100Pass{CGPROGRAM#pragma
2018-06-13 18:42:14
835
原创 Unity3D Shader : 单色混合
Shader "Unlit/Test"{Properties{_MainTex ("Texture", 2D) = "white" {}_MainColor("MainColor",Color)=(1,1,1,1)_DColor("DColor",Color)=(1,1,1,1)_FColor("FColor",Color)=(1,1,1,1)}SubShader{
2018-06-13 18:39:32
848
原创 Unity3D Shader : 边缘发光
Shader "Custom/Test"{Properties{_MainTex ("Texture", 2D) = "white" {}_RimColor("RimColor",Color) = (1,1,1,1)_BumpMap("Bump",2D) = "bump"{}_RimPower("RimPower",Range(0.0,1.0)) = 0
2018-06-13 18:34:52
1814
原创 Unity3D Shader:镜子的效果
Shader部分代码:Shader "Custom/FanShe" {Properties{_MainTex("Albedo",2D) = "white"{}_MainTint("Diffuse Color",Color)=(1,1,1,1)_Cubemap("Cubemap",CUBE) = ""{}_ReflAmount("Reflection Amount&
2018-06-13 17:12:04
2754
1
原创 Unity3D Shader :Math函数
abs 计算输入值的绝对值。acos 返回输入值反余弦值。all 测试非0值。any 测试输入值中的任何非零值。asin 返回输入值的反正弦值。atan ...
2018-06-13 17:08:06
2234
1
原创 Unity3D Shader : fragment Shader
float3 WorldSpaceViewDir(float4 v) //输入一个模型空间中的顶点位置,返回世界空间中从该点到摄像机的观察方向float3 ObjSpaceViewDir(float4 v) //输入一个模型空间中的顶点位置,返回模型空间中从该点到摄像机的观察方向float3 WorldSpaceLightDir(float4 v) //仅用于前向渲染中(ForwardBa...
2018-06-13 17:06:29
371
原创 Unity3D Shader :surface Shader
Propertie _Color("Color", Color) = (1,1,1,1)//主颜色 _MainTex("Albedo (RGB)", 2D) = "white" {}//主纹理 _Cutoff("Alpha Cutoff",Range(0.0,1.0)) = 0.5//Alpha剔除度 _Glossiness("Smoothness", Rang...
2018-06-13 16:57:43
525
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人