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
    Posts
    142

    Default OGLES2 shader

    http://en.wikipedia.org/wiki/Blinn–Phong_shading_model
    http://www.arcsynthesis.org/gltut/Il...g%20Model.html
    http://www.arcsynthesis.org/gltut/Il...g%20Model.html

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

    and

    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.

Bookmarks

Bookmarks

Posting Permissions

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