Classes | Variables
pointcloud-gl.cpp File Reference
#include "../include/librealsense2/rs.hpp"
#include "../include/librealsense2/rsutil.h"
#include "synthetic-stream-gl.h"
#include "environment.h"
#include "proc/occlusion-filter.h"
#include "pointcloud-gl.h"
#include "option.h"
#include "context.h"
#include <iostream>
#include <chrono>
#include "opengl3.h"
Include dependency graph for pointcloud-gl.cpp:

Go to the source code of this file.

Classes

class  occulution_shader
 
class  project_shader
 

Variables

static const char * occulution_fragment_text
 
static const char * occulution_vertex_shader_text
 
static const char * project_fragment_text
 

Variable Documentation

const char* occulution_fragment_text
static

Definition at line 166 of file pointcloud-gl.cpp.

const char* occulution_vertex_shader_text
static
Initial value:
=
"#version 130\n"
"attribute vec3 position;\n"
"attribute vec2 textureCoords;\n"
"varying vec2 textCoords;\n"
"varying vec2 occuTextureCoords[10];\n"
"uniform vec2 elementPosition;\n"
"uniform vec2 elementScale;\n"
"uniform float width;\n"
"uniform float height;\n"
"uniform int vscan;\n"
"void main(void)\n"
"{\n"
" gl_Position = vec4(position * vec3(elementScale, 1.0) + vec3(elementPosition, 0.0), 1.0);\n"
" textCoords = textureCoords;\n"
" float pixelsize = 1.0 / width;\n"
" float shift = 0.0;\n"
" for (int i = 0; i < 10; i++)\n"
" {\n"
" if(vscan > 0)\n"
" {\n"
" occuTextureCoords[i] = textureCoords + vec2(0.0, shift);\n"
" pixelsize = 2.0 / height;\n"
" } else {\n"
" occuTextureCoords[i] = textureCoords - vec2(shift, 0.0);\n"
" pixelsize = 2.0 / width;\n"
" }\n"
" shift += pixelsize;\n"
" }\n"
"}"

Definition at line 135 of file pointcloud-gl.cpp.

const char* project_fragment_text
static

Definition at line 24 of file pointcloud-gl.cpp.



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