mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
gles2gsg: squelch warning about missing #version line in shader
This commit is contained in:
parent
28f49ffd0b
commit
cca84131df
@ -170,6 +170,7 @@ static const string default_vshader =
|
|||||||
"out vec2 texcoord;\n"
|
"out vec2 texcoord;\n"
|
||||||
"out vec4 color;\n"
|
"out vec4 color;\n"
|
||||||
#else
|
#else
|
||||||
|
"#version 100\n"
|
||||||
"precision mediump float;\n"
|
"precision mediump float;\n"
|
||||||
"attribute vec4 p3d_Vertex;\n"
|
"attribute vec4 p3d_Vertex;\n"
|
||||||
"attribute vec4 p3d_Color;\n"
|
"attribute vec4 p3d_Color;\n"
|
||||||
@ -240,6 +241,7 @@ static const string default_fshader =
|
|||||||
"uniform sampler2D p3d_Texture0;\n"
|
"uniform sampler2D p3d_Texture0;\n"
|
||||||
"uniform vec4 p3d_TexAlphaOnly;\n"
|
"uniform vec4 p3d_TexAlphaOnly;\n"
|
||||||
#else
|
#else
|
||||||
|
"#version 100\n"
|
||||||
"precision mediump float;\n"
|
"precision mediump float;\n"
|
||||||
"varying vec2 texcoord;\n"
|
"varying vec2 texcoord;\n"
|
||||||
"varying lowp vec4 color;\n"
|
"varying lowp vec4 color;\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user