neurolots  0.3.4
NeuroLOTs
nlrender Namespace Reference

Copyright (c) 2015-2017 VG-Lab/URJC. More...

Classes

class  Config
 
class  Renderer
 
class  Version
 Information about the current nlrender version. More...
 

Variables

const char *const triangle_tcs
 
const char *const quad_vert
 
const char *const quad_geom
 
const char *const triangle_geom
 
const char *const triangle_tes
 
const char *const quad_tcs
 
const char *const triangle_vert
 
const char *const quad_tes
 
const char *const transparency_vert
 
const char *const line_vert
 
const char *const line_frag
 
const char *const triangle_frag
 
const char *const quad_frag
 
const char *const transparency_frag
 

Detailed Description

Copyright (c) 2015-2017 VG-Lab/URJC.

Authors: Juan Jose Garcia Cantero juanj.nosp@m.ose..nosp@m.garci.nosp@m.a@ur.nosp@m.jc.es, Pablo Toharia pablo.nosp@m..toh.nosp@m.aria@.nosp@m.urjc.nosp@m..es

This file is part of neurolots https://github.com/vg-lab/neurolots

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3.0 as published by the Free Software Foundation.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Authors: Juan Jose Garcia Cantero juanj.nosp@m.ose..nosp@m.garci.nosp@m.a@ur.nosp@m.jc.es

This file is part of neurolots https://github.com/vg-lab/neurolots

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3.0 as published by the Free Software Foundation.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Variable Documentation

const char* const nlrender::line_vert
Initial value:
= "#version 400\n"
"\n"
"layout( location = 0 ) in vec3 inVertex;\n"
"layout( location = 1 ) in vec3 inColor;\n"
"\n"
"out vec3 vColor;\n"
"\n"
"uniform mat4 viewModel;\n"
"uniform mat4 proy;\n"
"\n"
"void main( void )\n"
"{\n"
" vColor = inColor;\n"
" gl_Position = proy * viewModel * vec4( inVertex , 1.0 );\n"
"}"

Definition at line 347 of file Shaders.h.

const char* const nlrender::transparency_frag
Initial value:
= "#version 400\n"
"\n"
"out vec4 oColor;\n"
"\n"
"uniform sampler2D opaqueTexture;\n"
"uniform sampler2D accumTexture;\n"
"uniform sampler2D revealageTexture;\n"
"\n"
"void main( void )\n"
"{\n"
" // vec4 C0 = texelFetch( opaqueTexture, ivec2( gl_FragCoord.xy)*2 , 0 );\n"
" // vec4 accum = texelFetch( accumTexture, ivec2( gl_FragCoord.xy)*2 + ivec2( -600, 0 ) , 0 );\n"
" // float r = texelFetch( revealageTexture, ivec2( gl_FragCoord.xy)*2 + ivec2( 0,-600 ), 0 ).r;\n"
" // // vec4 sumC1 = vec4( accum.rgb / clamp( accum.a, 1e-4, 5e4), r );\n"
" // // oColor = sumC1 *(1-r) + C0 * r;\n"
" // oColor = vec4( r ) + accum + C0;\n"
" // // oColor = vec4( gl_FragCoord.xy / 600.0f, 0, 0 );\n"
"\n"
"\n"
" vec4 C0 = texelFetch( opaqueTexture, ivec2( gl_FragCoord.xy), 0 );\n"
" vec4 accum = texelFetch( accumTexture, ivec2( gl_FragCoord.xy), 0 );\n"
" float r = texelFetch( revealageTexture, ivec2( gl_FragCoord.xy), 0 ).r;\n"
" vec4 sumC1 = vec4( accum.rgb / clamp( accum.a, 1e-4, 5e4), r );\n"
" oColor = sumC1 *(1.0 - r) + C0 * r;\n"
" // oColor = vec4( r ) + accum + C0;\n"
"}"

Definition at line 506 of file Shaders.h.

const char* const nlrender::transparency_vert
Initial value:
= "#version 400\n"
"\n"
"in vec2 inPosition;\n"
"\n"
"void main( void )\n"
"{\n"
" gl_Position = vec4( inPosition, 0.0, 1.0 );\n"
"}"

Definition at line 338 of file Shaders.h.