Classes | Namespaces | Macros | Functions | Variables
pc-shader.cpp File Reference
#include "pc-shader.h"
#include "synthetic-stream-gl.h"
#include <glad/glad.h>
#include "option.h"
#include "tiny-profiler.h"
Include dependency graph for pc-shader.cpp:

Go to the source code of this file.

Classes

union  librealsense::gl::Fp32
 

Namespaces

 librealsense
 
 librealsense::gl
 

Macros

#define NORMAL_WINDOW_SIZE   3
 

Functions

matrix4 frustum (float left, float right, float bottom, float top, float zNear, float zFar, float ox, float oy)
 
float librealsense::gl::halfToNativeIeee (uint16_t value)
 

Variables

static const char * fragment_shader_text
 
static const char * fragment_shader_text_picking
 
static const char * vertex_shader_text
 
static const char * vertex_shader_text_picking
 

Macro Definition Documentation

#define NORMAL_WINDOW_SIZE   3

Definition at line 202 of file pc-shader.cpp.

Function Documentation

matrix4 frustum ( float  left,
float  right,
float  bottom,
float  top,
float  zNear,
float  zFar,
float  ox,
float  oy 
)

Definition at line 206 of file pc-shader.cpp.

Variable Documentation

const char* fragment_shader_text
static

Definition at line 73 of file pc-shader.cpp.

const char* fragment_shader_text_picking
static
Initial value:
=
"#version 130\n"
"\n"
"in float valid;\n"
"in vec4 outPos;\n"
"in vec2 sampledUvs;\n"
"in vec3 normal;\n"
"out vec4 output_rgb;\n"
"out vec3 output_xyz;\n"
"\n"
"uniform sampler2D textureSampler;\n"
"uniform float pickedID;\n"
"uniform float shaded;\n"
"\n"
"void main(void) {\n"
" if (valid > 0.0) discard;\n"
" output_rgb = vec4(1.0);\n"
" output_xyz = outPos.xyz;\n"
"}\n"

Definition at line 180 of file pc-shader.cpp.

const char* vertex_shader_text
static

Definition at line 11 of file pc-shader.cpp.

const char* vertex_shader_text_picking
static

Definition at line 123 of file pc-shader.cpp.



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