Bootstrap

Unity3D LineRenderer

LineRenderer 线渲染器

LineRenderer 线渲染器
在这里插入图片描述
Shader:
// Upgrade NOTE: replaced ‘mul(UNITY_MATRIX_MVP,)’ with 'UnityObjectToClipPos()’

Shader “AngryBots/FX/LaserScope” {
Properties {
_MainTex (“MainTex”, 2D) = “white”
_NoiseTex (“NoiseTex”, 2D) = “white”
}

CGINCLUDE

	#include "UnityCG.cginc"

	sampler2D _MainTex;
	sampler2D _NoiseTex;
	
	half4 _MainTex_ST;
	half4 _NoiseTex_ST;
	
	fixed4 _TintColor;
					
	struct v2f {
		half4 pos : SV_POSITION;
		half4 uv : TEXCOORD0;
	};

	v2f vert(appdata_full v)
	{
		v2f o;
		
		o.pos = UnityObjectToClipPos (v.vertex);	
		o.uv.xy = TRANSFORM_TEX(v.texcoord, _MainTex);
		o.uv.zw = TRANSFORM_TEX(v.texcoord, _NoiseTex);
				
		return o; 
	}
	
	fixed4 frag( v2f i ) : COLOR
	{	
;