Results 1 to 3 of 3

Thread: OGLES2 shader

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Lesser Wizard
    Join Date
    Feb 2013

    Default OGLES2 shader–Phong_shading_model

    vec3 E = normalize(-position);
    vec3 HalfVector = normalize(L + E);
    float NdotH = dot(normal, HalfVector);


    vec3 E = normalize(-position);
    vec3 R = reflect(-L, normal);
    float rDotE = dot(R,E);

    in file OGLES2xxxxx.vsh we use Blinn shading and which one you feel good for proton 3d sdk??
    Last edited by feelthat; 02-13-2015 at 10:04 AM.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts