unity shader写出的星云效果 是通过shadertoy 翻译出来的 !!很很好看
放代码=w=
Shader "star"
{
Properties{
_color("TestColor",Color) = (0,0,0,0)
_float("power",Float) = 1
_rotate("rotate",Float) = 1
//Properties
}
SubShader
{
Tags {
"RenderType" = "Transparent" "Queue" = "Transparent" }
Pass
{
ZWrite Off
Blend SrcAlpha OneMinusSrcAlpha
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct VertexInput {
fixed4 vertex : POSITION;
fixed2 uv : TEXCOORD0;
fixed4 tangent : TANGENT;
fixed3 normal : NORMAL;
//VertexInput
};
struct VertexOutput {
fixed4 pos : SV_POSITION;
fixed2 uv : TEXCOORD0;
//VertexOutput
};