Browse Source

Fix shader compile error due to missing variable.

David 7 năm trước cách đây
mục cha
commit
6c5a4c8e85
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/Shaders/background.fragment.fx

+ 3 - 1
src/Shaders/background.fragment.fx

@@ -6,6 +6,8 @@ precision highp float;
 
 #include<__decl__backgroundFragment>
 
+#define RECIPROCAL_PI2 0.15915494
+
 // Constants
 uniform vec3 vEyePosition;
 
@@ -286,4 +288,4 @@ vec4 color = vec4(finalColor, finalAlpha);
 #endif
 
     gl_FragColor = color;
-}
+}