소스 검색

glsllib with macros to convert glsl 1.1 shaders to 1.5

Kirill Vainer 10 년 전
부모
커밋
b8fe36ed76
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 14 0
      jme3-core/src/main/resources/Common/ShaderLib/GLSL150Compat.glsllib

+ 14 - 0
jme3-core/src/main/resources/Common/ShaderLib/GLSL150Compat.glsllib

@@ -0,0 +1,14 @@
+#if _VERSION_ >= 150
+out vec4 outFragColor;
+#  define texture1D texture
+#  define texture2D texture
+#  define texture3D texture
+#  define texture2DLod texture
+#  if defined VERTEX_SHADER
+#    define varying out
+#    define attribute in
+#  elif defined FRAGMENT_SHADER
+#    define varying in
+#    define gl_FragColor outFragColor
+#  endif
+#endif