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

gpu: try to patch some simple GLSL shaders on the fly so that they
work on OpenGL ES contexts.

File:
1 edited

Legend:

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

    r1687 r1690  
    11
    22-- GLSL.Vert --
    3 #if defined GL_ES
    4 #version 100
    5 #else
    63#version 120
    7 #endif
    84
    95attribute vec3 in_Vertex;
     
    1410uniform mat4 in_Proj;
    1511uniform mat3 in_NormalMat;
    16 uniform vec3 in_LightDir = vec3(0.3, 0.3, 0.7);
     12// FIXME: the light direction should be passed in the code
     13vec3 in_LightDir = vec3(0.3, 0.3, 0.7);
    1714uniform float in_Damage;
    1815
     
    5451
    5552-- GLSL.Frag --
    56 #if defined GL_ES
    57 #version 100
    58 #else
    5953#version 120
    60 #endif
    6154
    6255#if defined GL_ES
Note: See TracChangeset for help on using the changeset viewer.