#include "camera-shader.h"
#include <glad/glad.h>
#include "option.h"
#include <res/d435.h>
#include <res/d415.h>
#include <res/sr300.h>
#include <res/t265.h>
#include <res/l500.h>
Go to the source code of this file.
const char* fragment_shader_text |
|
static |
Initial value:=
"#version 110\n"
"uniform float opacity;"
"\n"
"void main(void) {\n"
" gl_FragColor = vec4(opacity * (36.0 / 1000.0), opacity * (44.0 / 1000.0), opacity * (51.0 / 1000.0), opacity);\n"
"}\n"
Definition at line 34 of file camera-shader.cpp.
const char* vertex_shader_text |
|
static |
Initial value:=
"#version 110\n"
"\n"
"attribute vec3 position;\n"
"uniform mat4 transformationMatrix;\n"
"uniform mat4 projectionMatrix;\n"
"uniform mat4 cameraMatrix;\n"
"\n"
"void main(void) {\n"
" vec4 worldPosition = transformationMatrix * vec4(position.xyz, 1.0);\n"
" gl_Position = projectionMatrix * cameraMatrix * worldPosition;\n"
"}\n"
Definition at line 21 of file camera-shader.cpp.