update documentation

This commit is contained in:
Leon van Kammen 2024-02-05 12:17:35 +01:00
parent e86c738dad
commit e1b3000429
4 changed files with 5 additions and 5 deletions

View File

@ -569,7 +569,7 @@ That way, if the link gets shared, the XR Fragments implementation at <code>http
<p>Example URI&rsquo;s:</p> <p>Example URI&rsquo;s:</p>
<ul> <ul>
<li><code>https://shaders.org/plasma.glsl#t=0&amp;u.col1=1,0,0&amp;u.col2=0,1,0</code> (red-green shader plasma starts playing from time-offset 0)</li> <li><code>https://shaders.org/plasma.glsl#t=0&amp;u:col1=1,0,0&amp;u:col2=0,1,0</code> (red-green shader plasma starts playing from time-offset 0)</li>
<li><code>https://images.org/credits.jpg#t=0&amp;sxy=l:0,0.1</code> (infinite vertical texturescrolling)</li> <li><code>https://images.org/credits.jpg#t=0&amp;sxy=l:0,0.1</code> (infinite vertical texturescrolling)</li>
<li><code>https://video.org/organogram.mp4#t=0&amp;sxy:0.1,0.1&amp;xywh=500,500,480,640</code> (animated zoom towards region in video)</li> <li><code>https://video.org/organogram.mp4#t=0&amp;sxy:0.1,0.1&amp;xywh=500,500,480,640</code> (animated zoom towards region in video)</li>
</ul> </ul>

View File

@ -275,7 +275,7 @@ These are automatic fragment-to-metadata mappings, which only trigger if the 3D
| temporal W3C media fragment * | t=[l:]x,y | l:0,1 | play [as loop] between `x` and `y` | | temporal W3C media fragment * | t=[l:]x,y | l:0,1 | play [as loop] between `x` and `y` |
| temporal W3C media fragment * | s=x[,y] | 1 | set playback speed of audio/video/3D anim | | temporal W3C media fragment * | s=x[,y] | 1 | set playback speed of audio/video/3D anim |
| temporal W3C media fragment * | sxy=[l:]x,y | 0.1,0.2 | xy scrollspeed of new xywh viewport/uvcoordinates (default `1,1` is instant): allows lerping to new `xywh` values [or infinite texturescrolling] | | temporal W3C media fragment * | sxy=[l:]x,y | 0.1,0.2 | xy scrollspeed of new xywh viewport/uvcoordinates (default `1,1` is instant): allows lerping to new `xywh` values [or infinite texturescrolling] |
| temporal W3C media fragment * | u:<uniform>=<string|float|vec2|vec3|vec4> | u.color=1,0,0 | set shader uniform value | | temporal W3C media fragment * | u:<uniform>=<string|float|vec2|vec3|vec4> | u:color=1,0,0 | set shader uniform value |
> \* = this is extending the [W3C media fragments](https://www.w3.org/TR/media-frags/#mf-advanced) with finer playback/viewport-control: > \* = this is extending the [W3C media fragments](https://www.w3.org/TR/media-frags/#mf-advanced) with finer playback/viewport-control:
@ -289,7 +289,7 @@ These are automatic fragment-to-metadata mappings, which only trigger if the 3D
Example URI's: Example URI's:
* `https://shaders.org/plasma.glsl#t=0&u.col1=1,0,0&u.col2=0,1,0` (red-green shader plasma starts playing from time-offset 0) * `https://shaders.org/plasma.glsl#t=0&u:col1=1,0,0&u:col2=0,1,0` (red-green shader plasma starts playing from time-offset 0)
* `https://images.org/credits.jpg#t=0&sxy=l:0,0.1` (infinite vertical texturescrolling) * `https://images.org/credits.jpg#t=0&sxy=l:0,0.1` (infinite vertical texturescrolling)
* `https://video.org/organogram.mp4#t=0&sxy:0.1,0.1&xywh=500,500,480,640` (animated zoom towards region in video) * `https://video.org/organogram.mp4#t=0&sxy:0.1,0.1&xywh=500,500,480,640` (animated zoom towards region in video)

View File

@ -593,7 +593,7 @@ Internet-Draft XR Fragments February 2024
Example URI's: Example URI's:
* https://shaders.org/plasma.glsl#t=0&u.col1=1,0,0&u.col2=0,1,0 * https://shaders.org/plasma.glsl#t=0&u:col1=1,0,0&u:col2=0,1,0
(red-green shader plasma starts playing from time-offset 0) (red-green shader plasma starts playing from time-offset 0)
* https://images.org/credits.jpg#t=0&sxy=l:0,0.1 (infinite vertical * https://images.org/credits.jpg#t=0&sxy=l:0,0.1 (infinite vertical
texturescrolling) texturescrolling)

View File

@ -466,7 +466,7 @@ That way, if the link gets shared, the XR Fragments implementation at <tt>https:
</table><t>Example URI's:</t> </table><t>Example URI's:</t>
<ul spacing="compact"> <ul spacing="compact">
<li><tt>https://shaders.org/plasma.glsl#t=0&amp;u.col1=1,0,0&amp;u.col2=0,1,0</tt> (red-green shader plasma starts playing from time-offset 0)</li> <li><tt>https://shaders.org/plasma.glsl#t=0&amp;u:col1=1,0,0&amp;u:col2=0,1,0</tt> (red-green shader plasma starts playing from time-offset 0)</li>
<li><tt>https://images.org/credits.jpg#t=0&amp;sxy=l:0,0.1</tt> (infinite vertical texturescrolling)</li> <li><tt>https://images.org/credits.jpg#t=0&amp;sxy=l:0,0.1</tt> (infinite vertical texturescrolling)</li>
<li><tt>https://video.org/organogram.mp4#t=0&amp;sxy:0.1,0.1&amp;xywh=500,500,480,640</tt> (animated zoom towards region in video)</li> <li><tt>https://video.org/organogram.mp4#t=0&amp;sxy:0.1,0.1&amp;xywh=500,500,480,640</tt> (animated zoom towards region in video)</li>
</ul> </ul>