Results 1 to 3 of 3

Thread: help! how to make Shader in proton example

  1. #1
    Lesser Wizard
    Join Date
    Feb 2013
    Posts
    142

    Default help! how to make Shader in proton example

    Dear all:

    need use shader
    video::IMaterialRendererServices* services

    how to get IMaterialRendererServices this pointer?



    Ex:

    core::matrix4 invWorld = driver->getTransform(video::ETS_WORLD);
    invWorld.makeInverse();

    if (UseHighLevelShaders)
    services->setVertexShaderConstant("mInvWorld", invWorld.pointer(), 16);
    else
    services->setVertexShaderConstant(invWorld.pointer(), 0, 4);

  2. #2
    Squire
    Join Date
    Jun 2012
    Location
    Mexico
    Posts
    26

    Default

    As far I know its not possible to use shaders in proton sdk since it uses opengl es 1.0, and shaders are only on opengl es 2.0+ (correct me if I' wrong)
    Quote Originally Posted by feelthat View Post
    Dear all:

    need use shader
    video::IMaterialRendererServices* services

    how to get IMaterialRendererServices this pointer?



    Ex:

    core::matrix4 invWorld = driver->getTransform(video::ETS_WORLD);
    invWorld.makeInverse();

    if (UseHighLevelShaders)
    services->setVertexShaderConstant("mInvWorld", invWorld.pointer(), 16);
    else
    services->setVertexShaderConstant(invWorld.pointer(), 0, 4);
    Zaxuhe//
    Game developer

  3. #3
    Lesser Wizard
    Join Date
    Feb 2013
    Posts
    142

    Default i am not sure

    not sure but thanks, anyone more answer?

    Quote Originally Posted by Zaxuhe View Post
    As far I know its not possible to use shaders in proton sdk since it uses opengl es 1.0, and shaders are only on opengl es 2.0+ (correct me if I' wrong)

Similar Threads

  1. Updated Geometry Shader Example
    By rombust in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 02-09-2012, 08:17 PM
  2. Use only fragment shader
    By Aikidos in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 12-21-2011, 05:55 PM
  3. GLSL example geometry shader
    By rombust in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 03-10-2010, 02:13 PM
  4. New Geometry Shader Example
    By rombust in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 03-08-2010, 03:16 PM
  5. Shader Help
    By jerkald in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 09-07-2008, 09:54 PM

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
  •