Первый коммит
This commit is contained in:
33
Assets/RealisticCarControllerV3/Scripts/RCC_Skidmarks.shader
Normal file
33
Assets/RealisticCarControllerV3/Scripts/RCC_Skidmarks.shader
Normal file
@ -0,0 +1,33 @@
|
||||
Shader "RCCSkidmarks" {
|
||||
Properties {
|
||||
_Color ("Main Color", Color) = (1,1,1,1)
|
||||
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
|
||||
}
|
||||
|
||||
Category {
|
||||
Offset -4, -4
|
||||
ZWrite Off
|
||||
Alphatest Greater 0
|
||||
Tags {"Queue"="Transparent" "RenderType"="Transparent"}
|
||||
SubShader {
|
||||
ColorMaterial AmbientAndDiffuse
|
||||
Lighting Off
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
Pass {
|
||||
ColorMask RGBA
|
||||
SetTexture [_MainTex] {
|
||||
Combine texture, texture * primary
|
||||
// * primary
|
||||
}
|
||||
SetTexture [_MainTex] {
|
||||
ConstantColor [_Color]
|
||||
Combine constant * previous
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Fallback to Alpha Vertex Lit
|
||||
Fallback "Transparent/VertexLit", 2
|
||||
|
||||
}
|
Reference in New Issue
Block a user