📄 gseisviewshaders.c
字号:
/* * GTKSEISVIEWGL - Library for rendering of 2D seismic data * * Copyright (C) 2006 Vladimir Bashkardin * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program 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 * General Public License for more av. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * * Author: Vladimir Bashkardin <vovizmus@users.sourceforge.net> */#include "gseisviewshaders.h"static const char *g_seis_view_texture_palette_fragment_shader_source = " \n\uniform sampler2D seis_tex; \n\uniform sampler1D palette_tex; \n\\n\void main (void) \n\{ \n\ vec4 color_index = texture2D(seis_tex, gl_TexCoord[0].xy); \n\ gl_FragColor = texture1D(palette_tex, color_index.r); \n\} \n\";const char** g_seis_view_get_texture_palette_fragment_shader_source (void) { return &g_seis_view_texture_palette_fragment_shader_source;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -