Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100151029
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, Jan 28, 13:54
Size
430 B
Mime Type
text/x-c
Expires
Thu, Jan 30, 13:54 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23892396
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