mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 05:50:18 +00:00
44 lines
991 B
Text
44 lines
991 B
Text
Shader "SanAndreasUnity/Vehicle"
|
|
{
|
|
Properties
|
|
{
|
|
_MainTex ("Albedo (RGB)", 2D) = "white" {}
|
|
_MaskTex ("Mask (A)", 2D) = "white" {}
|
|
_NoiseTex ("Noise (A)", 2D) = "white" {}
|
|
|
|
_Metallic ("Metallic", Range(0.0, 1.0)) = 0
|
|
_Smoothness ("Smoothness", Range(0.0, 1.0)) = 0
|
|
_Color ("Color", Color) = (1, 1, 1, 1)
|
|
|
|
_CarColorIndex ("Car Color Index", Range(0, 8)) = 0
|
|
|
|
_CarColor ("Car Color", Color) = (1, 1, 1, 1)
|
|
_CarEmission ("Car Emission", Range(0, 10)) = 0
|
|
|
|
_AlphaCutoff ("Alpha Cutoff", Range(0.0, 1.0)) = 0.5
|
|
}
|
|
|
|
SubShader
|
|
{
|
|
Tags {
|
|
"RenderType" = "Opaque"
|
|
"Queue" = "Geometry"
|
|
}
|
|
|
|
LOD 200
|
|
Cull Off
|
|
|
|
CGPROGRAM
|
|
|
|
#pragma surface surf Standard addshadow alphatest:_AlphaCutoff
|
|
#pragma target 3.0
|
|
|
|
#define VEHICLE
|
|
|
|
#include "Shared.cginc"
|
|
|
|
ENDCG
|
|
}
|
|
|
|
FallBack "Diffuse"
|
|
}
|