Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tome
Tales of MajEyal
Commits
e6f13e22
Commit
e6f13e22
authored
10 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
plop
parent
88a2e900
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/modules/tome/data/gfx/shaders/main_fbo/gestures.frag
+22
-0
22 additions, 0 deletions
game/modules/tome/data/gfx/shaders/main_fbo/gestures.frag
game/modules/tome/data/gfx/shaders/main_fbo/gestures.lua
+30
-0
30 additions, 0 deletions
game/modules/tome/data/gfx/shaders/main_fbo/gestures.lua
with
52 additions
and
0 deletions
game/modules/tome/data/gfx/shaders/main_fbo/gestures.frag
0 → 100644
+
22
−
0
View file @
e6f13e22
uniform
sampler2D
tex
;
uniform
float
intensity
;
uniform
float
fade
;
uniform
float
tick
;
void
main
(
void
)
{
vec2
pos
=
gl_TexCoord
[
0
];
vec4
c
=
texture2D
(
tex
,
pos
);
float
v
=
gl_TexCoord
[
0
].
x
;
v
=
min
(
clamp
(
v
*
2
.
0
,
0
.
0
,
1
.
0
),
clamp
((
1
.
0
-
v
)
*
2
.
0
,
0
.
0
,
1
.
0
));
c
.
a
*=
v
*
v
*
intensity
;
if
(
intensity
<
1
.
0
)
c
.
a
*=
v
;
c
*=
gl_Color
;
if
(
fade
>
0
.
0
)
{
c
.
a
*=
fade
;
}
gl_FragColor
=
c
;
}
This diff is collapsed.
Click to expand it.
game/modules/tome/data/gfx/shaders/main_fbo/gestures.lua
0 → 100644
+
30
−
0
View file @
e6f13e22
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2015 Nicolas Casalini
--
-- 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 3 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://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
return
{
frag
=
"main_fbo/gestures"
,
vert
=
nil
,
args
=
{
tex
=
{
texture
=
0
},
intensity
=
intensity
or
0
.
6
,
fade
=
fade
or
0
,
},
clone
=
false
,
permanent
=
true
,
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment