Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65069516
distort.frag
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, May 31, 13:32
Size
430 B
Mime Type
text/x-c
Expires
Sun, Jun 2, 13:32 (2 d)
Engine
blob
Format
Raw Data
Handle
17998538
Attached To
R9525 cellulo-lovr
distort.frag
View Options
uniform
sampler2D
vizpp_InputTex
;
uniform
float
osg_FrameTime
;
uniform
float
speed
;
uniform
float
scale
;
uniform
float
density
;
void
main
()
{
vec2
uv
=
gl_TexCoord
[
0
].
xy
;
//bumpUV.y = fract(bumpUV.y - osg_FrameTime*0.1);
vec2
dt
;
dt
.
x
=
sin
(
speed
*
osg_FrameTime
+
uv
.
y
*
density
)
*
0.001
*
scale
;
dt
.
y
=
cos
(
0.7
+
0.7
*
speed
*
osg_FrameTime
+
uv
.
x
*
density
)
*
0.001
*
scale
;
gl_FragColor
=
texture2D
(
vizpp_InputTex
,
uv
+
dt
);
}
Event Timeline
Log In to Comment