UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
opengl_panorama.cpp File Reference
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/quaternion.hpp>
#include "opengl_utils.hpp"
#include "opengl_conversions.hpp"
#include "video_frame.h"
#include "debug.h"
#include "opengl_panorama.hpp"
#include "utils/profile_timer.hpp"
Include dependency graph for opengl_panorama.cpp:

Go to the source code of this file.

Variables

static const char * persp_frag_src
 
static const char * persp_vert_src
 

Detailed Description

Author
Martin Piatka piatk.nosp@m.a@ce.nosp@m.snet..nosp@m.cz

Definition in file opengl_panorama.cpp.

Variable Documentation

◆ persp_frag_src

const char* persp_frag_src
static
Initial value:
= R"END(
#version 330 core
in vec2 UV;
out vec3 color;
uniform sampler2D tex;
void main(){
color = texture(tex, UV).rgb;
}
)END"

Definition at line 65 of file opengl_panorama.cpp.

◆ persp_vert_src

const char* persp_vert_src
static
Initial value:
= R"END(
#version 330 core
layout(location = 0) in vec3 vert_pos;
layout(location = 1) in vec2 vert_uv;
out vec2 UV;
uniform mat4 pv_mat;
void main(){
gl_Position = pv_mat * vec4(vert_pos, 1.0f);
UV = vert_uv;
}
)END"

Definition at line 50 of file opengl_panorama.cpp.