Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only using medium precision floats in the pixel shader.

  • Loading branch information...
commit 71794aa416c18a0e5292e8721ef393578355eeb3 1 parent 5450b57
@RayBatts RayBatts authored
View
BIN  MonoGame.Framework/Graphics/Effect/Resources/AlphaTestEffect.ogl.mgfxo
Binary file not shown
View
BIN  MonoGame.Framework/Graphics/Effect/Resources/BasicEffect.ogl.mgfxo
Binary file not shown
View
BIN  MonoGame.Framework/Graphics/Effect/Resources/DualTextureEffect.ogl.mgfxo
Binary file not shown
View
BIN  MonoGame.Framework/Graphics/Effect/Resources/EnvironmentMapEffect.ogl.mgfxo
Binary file not shown
View
BIN  MonoGame.Framework/Graphics/Effect/Resources/SkinnedEffect.ogl.mgfxo
Binary file not shown
View
BIN  MonoGame.Framework/Graphics/Effect/Resources/SpriteEffect.ogl.mgfxo
Binary file not shown
View
5 Tools/2MGFX/DXShaderData.mojo.cs
@@ -175,8 +175,11 @@ public static DXShaderData CreateGLSL (byte[] byteCode, List<DXConstantBufferDat
glslCode = glslCode.Replace ("#version 110", "");
// Add the required precision specifiers for GLES.
+
+ var floatPrecision = dxshader.IsVertexShader ? "precision highp float;\r\n" : "precision mediump float;\r\n";
+
glslCode = "#ifdef GL_ES\r\n" +
- "precision mediump float;\r\n" +
+ floatPrecision +
"precision mediump int;\r\n" +
"#endif\r\n" +
glslCode;
Please sign in to comment.
Something went wrong with that request. Please try again.