mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 00:07:24 +00:00
23 lines
365 B
GLSL
23 lines
365 B
GLSL
//
|
|
// Bui Tuong Phong shading model (per-pixel)
|
|
//
|
|
// by
|
|
// Massimiliano Corsini
|
|
// Visual Computing Lab (2006)
|
|
//
|
|
|
|
varying vec3 normal;
|
|
varying vec3 vpos;
|
|
|
|
void main()
|
|
{
|
|
// vertex normal
|
|
normal = normalize(gl_NormalMatrix * gl_Normal);
|
|
|
|
// vertex position
|
|
vpos = vec3(gl_ModelViewMatrix * gl_Vertex);
|
|
|
|
// vertex position
|
|
gl_Position = ftransform();
|
|
}
|