Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120283940
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
Thu, Jul 3, 06:23
Size
430 B
Mime Type
text/x-c
Expires
Sat, Jul 5, 06:23 (1 d, 8 h)
Engine
blob
Format
Raw Data
Handle
27138295
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