mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-09-22 23:18:01 +03:00
Most of the functionality of gfx_render_texture (draw method, blend rate) is moved into sprite_render, since this was the only place using it. The draw method and blend rate are now stored in sact_sprite objects instead of textures. sact_sprite now has two renderers: the old SACT2 renderer (with blend rate as the only shader parameter) and the new ChipmunkSpriteEngine renderer, which supports multiply/add colors and the "surface area" feature from PartsEngine. Rance Quest now runs up to the first Flash-related function call (Flash?!?!).
25 lines
844 B
GLSL
25 lines
844 B
GLSL
/* Copyright (C) 2019 Nunuhara Cabbage <nunuhara@haniwa.technology>
|
|
*
|
|
* 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 details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see <http://gnu.org/licenses/>.
|
|
*/
|
|
|
|
uniform sampler2D tex;
|
|
|
|
in vec2 tex_coord;
|
|
out vec4 frag_color;
|
|
|
|
void main() {
|
|
frag_color = texture(tex, tex_coord);
|
|
}
|