Ignore:
Timestamp:
Aug 4, 2012, 2:54:11 PM (7 years ago)
Author:
sam
Message:

easymesh: fix the specular highlight in the OpenGL shader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/easymesh/shiny.lolfx

    r1690 r1693  
    3131    vec4 eye = in_ModelView * vec4(in_Vertex, 1.0);
    3232
    33     vec3 s = in_LightDir; /* normalize(eye - lightpos); */
     33    vec3 s = normalize(in_LightDir); /* normalize(eye - lightpos); */
    3434    vec3 v = normalize(-eye.xyz);
    3535    vec3 r = reflect(-s, tnorm);
Note: See TracChangeset for help on using the changeset viewer.