Explorar el Código

easymesh: allow the shader to build on GL ES.

legacy
Sam Hocevar sam hace 13 años
padre
commit
a36e930a87
Se han modificado 1 ficheros con 11 adiciones y 1 borrados
  1. +11
    -1
      src/easymesh/shiny.lolfx

+ 11
- 1
src/easymesh/shiny.lolfx Ver fichero

@@ -1,6 +1,10 @@

-- GLSL.Vert --
#if defined GL_ES
#version 100
#else
#version 120
#endif

attribute vec3 in_Vertex;
attribute vec3 in_Normal;
@@ -49,9 +53,15 @@ void main(void)
}

-- GLSL.Frag --
#if defined GL_ES
#version 100
#else
#version 120
#endif

//precision highp float;
#if defined GL_ES
precision highp float;
#endif
varying vec4 pass_Color;

void main(void) {


Cargando…
Cancelar
Guardar