소스 검색

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 --
#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) {


불러오는 중...
취소
저장