34 lines
315 B
Plaintext
34 lines
315 B
Plaintext
#Material
|
|
Name Blinn-phong shading model only color
|
|
Base Std3D
|
|
|
|
Require LocalToWorld,Camera,Sun
|
|
|
|
#MaterialInstance
|
|
|
|
Code
|
|
{
|
|
float Diffuse;
|
|
float Intensity;
|
|
}
|
|
|
|
#VertexInput
|
|
vec3 Normal
|
|
|
|
#Vertex
|
|
Output
|
|
{
|
|
vec3 Normal;
|
|
}
|
|
|
|
Code
|
|
{
|
|
void main()
|
|
{
|
|
gl_Position=GetPosition3D();
|
|
}
|
|
}
|
|
|
|
#Fragment
|
|
|