#include "pc-shader.h"
#include "synthetic-stream-gl.h"
#include <glad/glad.h>
#include "option.h"
#include "tiny-profiler.h"
Go to the source code of this file.
#define NORMAL_WINDOW_SIZE 3 |
matrix4 frustum |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top, |
|
|
float |
zNear, |
|
|
float |
zFar, |
|
|
float |
ox, |
|
|
float |
oy |
|
) |
| |
const char* fragment_shader_text |
|
static |
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 |
const char* vertex_shader_text_picking |
|
static |