mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 18:45:55 +08:00
Fixed ES shaders so they work with OpenGL ES 3.0
This commit is contained in:
parent
5669decd98
commit
c652c1e1f4
@ -12,6 +12,7 @@ namespace libvgcode {
|
|||||||
|
|
||||||
static const char* Segments_Vertex_Shader_ES =
|
static const char* Segments_Vertex_Shader_ES =
|
||||||
"#version 300 es\n"
|
"#version 300 es\n"
|
||||||
|
"precision lowp usampler2D;\n"
|
||||||
"#define POINTY_CAPS\n"
|
"#define POINTY_CAPS\n"
|
||||||
"#define FIX_TWISTING\n"
|
"#define FIX_TWISTING\n"
|
||||||
"const vec3 light_top_dir = vec3(-0.4574957, 0.4574957, 0.7624929);\n"
|
"const vec3 light_top_dir = vec3(-0.4574957, 0.4574957, 0.7624929);\n"
|
||||||
@ -156,6 +157,7 @@ static const char* Segments_Fragment_Shader_ES =
|
|||||||
|
|
||||||
static const char* Options_Vertex_Shader_ES =
|
static const char* Options_Vertex_Shader_ES =
|
||||||
"#version 300 es\n"
|
"#version 300 es\n"
|
||||||
|
"precision lowp usampler2D;\n"
|
||||||
"const vec3 light_top_dir = vec3(-0.4574957, 0.4574957, 0.7624929);\n"
|
"const vec3 light_top_dir = vec3(-0.4574957, 0.4574957, 0.7624929);\n"
|
||||||
"const float light_top_diffuse = 0.6 * 0.8;\n"
|
"const float light_top_diffuse = 0.6 * 0.8;\n"
|
||||||
"const float light_top_specular = 0.6 * 0.125;\n"
|
"const float light_top_specular = 0.6 * 0.125;\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user