Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62690276
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
Tue, May 14, 22:03
Size
430 B
Mime Type
text/x-c
Expires
Thu, May 16, 22:03 (2 d)
Engine
blob
Format
Raw Data
Handle
17677959
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