Added Std3D/VertexLum2D.mtl
This commit is contained in:
parent
0da0290fc6
commit
c1d54628d1
47
ShaderLibrary/Std3D/VertexLum2D.mtl
Normal file
47
ShaderLibrary/Std3D/VertexLum2D.mtl
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
#Material
|
||||||
|
Name VertexLum2D
|
||||||
|
Base Std3D
|
||||||
|
|
||||||
|
#MaterialInstance
|
||||||
|
Length 16
|
||||||
|
Stage Vertex
|
||||||
|
Code
|
||||||
|
{
|
||||||
|
vec4 Color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#VertexInput
|
||||||
|
float Luminance
|
||||||
|
|
||||||
|
#Vertex
|
||||||
|
Output
|
||||||
|
{
|
||||||
|
vec4 Color
|
||||||
|
}
|
||||||
|
|
||||||
|
Code
|
||||||
|
{
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
MaterialInstance mi=GetMI();
|
||||||
|
|
||||||
|
Output.Color=Luminance*mi.Color;
|
||||||
|
|
||||||
|
gl_Position=GetPosition3D();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#Fragment
|
||||||
|
|
||||||
|
Output
|
||||||
|
{
|
||||||
|
vec4 FragColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
Code
|
||||||
|
{
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
FragColor=Input.Color;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user