mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2025-02-18 11:24:22 +01:00
29 lines
611 B
Text
29 lines
611 B
Text
|
Shader "Playground/Vertex Lit Texture" {
|
||
|
Properties {
|
||
|
_Color ("Main Color", Color) = (1, 1, 1, 1)
|
||
|
_MainTex ("Texture", 2D) = "white" {}
|
||
|
}
|
||
|
SubShader {
|
||
|
Tags { "Queue" = "Transparent" }
|
||
|
Blend SrcAlpha OneMinusSrcAlpha
|
||
|
Lighting On
|
||
|
ColorMaterial AmbientAndDiffuse
|
||
|
Zwrite On
|
||
|
BindChannels {
|
||
|
Bind "Color", color
|
||
|
Bind "Vertex", vertex
|
||
|
Bind "normal", normal
|
||
|
Bind "TexCoord", texcoord
|
||
|
}
|
||
|
Material {
|
||
|
Diffuse [_Color]
|
||
|
Ambient [_Color]
|
||
|
Emission[_Vertex]
|
||
|
}
|
||
|
Pass {
|
||
|
SetTexture [_MainTex] {
|
||
|
combine texture * primary
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|