Classes | Namespaces | Typedefs | Functions | Variables
camera-shader.cpp File Reference
#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>
Include dependency graph for camera-shader.cpp:

Go to the source code of this file.

Classes

struct  short3
 

Namespaces

 librealsense
 
 librealsense::gl
 

Typedefs

typedef void(* librealsense::gl::load_function) (std::vector< rs2::float3 > &, std::vector< rs2::float3 > &, std::vector< short3 > &)
 

Functions

obj_mesh librealsense::gl::load_model (load_function f)
 
bool librealsense::gl::starts_with (const std::string &s, const std::string &prefix)
 

Variables

static const char * fragment_shader_text
 
static const char * vertex_shader_text
 

Variable Documentation

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.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:24