ソースを参照

easymesh: allow the shader to build on GL ES.

legacy
Sam Hocevar sam 13年前
コミット
a36e930a87
1個のファイルの変更11行の追加1行の削除
  1. +11
    -1
      src/easymesh/shiny.lolfx

+ 11
- 1
src/easymesh/shiny.lolfx ファイルの表示

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


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


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


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


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


void main(void) { void main(void) {


読み込み中…
キャンセル
保存