mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-26 23:37:59 +01:00
29 lines
No EOL
611 B
GLSL
29 lines
No EOL
611 B
GLSL
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
|
|
}
|
|
}
|
|
}
|
|
} |