Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Shader "Skidmarks" {
- 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
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement