- "filename": "{DALI_IMAGE_DIR}gallery-medium-25.jpg",
- "width": 400,
- "height": 400,
- "loadPolicy": "IMMEDIATE",
- "releasePolicy": "NEVER"
+ "url": "{DEMO_IMAGE_DIR}gallery-medium-25.jpg",
+ "desiredWidth": 400,
+ "desiredHeight": 400,
+ "shader": {
+ "fragmentShader": [
+ "precision mediump float;",
+ "uniform sampler2D sTexture;",
+ "uniform vec4 uColor;",
+ "uniform float uAmplitude;",
+ "uniform float uTime;",
+ "varying vec2 vTexCoord;",
+ "void main()",
+ "{",
+ " highp vec2 pos = -1.0 + 2.0 * vTexCoord;",
+ " highp float len = length(pos);",
+ " highp vec2 texCoord = vTexCoord + pos/len * sin( len * 12.0 - uTime * 4.0 ) * uAmplitude;",
+ " gl_FragColor = texture2D(sTexture, texCoord) * uColor;",
+ "}"
+ ]
+ }
+ },
+ "animatableProperties": {
+ "uAmplitude": 0.02,
+ "uTime": 0.0