Go to the documentation of this file.
21 return "precision mediump float;\n"
22 "precision mediump int;\n"
23 "attribute vec4 vertex;\n"
25 "uniform vec4 color;\n"
26 "varying vec4 v_color;\n"
28 " gl_Position = mvp*vertex;\n"
34 return "precision mediump float;\n"
35 "varying vec4 v_color;\n"
37 " gl_FragColor = v_color;\n"
42 return "precision mediump float;\n"
43 "precision mediump int;\n"
44 "attribute vec4 vertex;\n"
45 "attribute vec4 color;\n"
47 "varying vec4 v_color;\n"
49 " gl_Position = mvp*vertex;\n"
55 return "precision highp float;\n"
56 "precision highp int;\n"
57 "attribute vec4 vertex;\n"
58 "attribute vec2 textureCoords;\n"
59 "varying vec2 f_textureCoords;\n"
62 " f_textureCoords = textureCoords;\n"
63 " gl_Position = mvp * vertex;\n"
68 return "#extension GL_OES_EGL_image_external : require\n"
69 "precision highp float;\n"
70 "precision highp int;\n"
71 "uniform samplerExternalOES texture;\n"
72 "varying vec2 f_textureCoords;\n"
74 " gl_FragColor = texture2D(texture, f_textureCoords);\n"
79 return "attribute vec4 vertex;\n"
80 "attribute vec3 normal;\n"
83 "uniform vec4 color;\n"
84 "uniform vec3 lightVec;\n"
85 "varying vec4 v_color;\n"
87 " vec3 mvNormal = vec3(mv * vec4(normal, 0.0));\n"
88 " float diffuse = max(-dot(mvNormal, lightVec), 0.0);\n"
89 " v_color.a = color.a;\n"
90 " v_color.xyz = color.xyz * diffuse + color.xyz * 0.3;\n"
91 " gl_Position = mvp*vertex;\n"
std::string GetVideoOverlayVertexShader()
std::string GetBasicFragmentShader()
std::string GetShadedVertexShader()
std::string GetColorVertexShader()
std::string GetVideoOverlayFragmentShader()
std::string GetBasicVertexShader()
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:16