Skip to content
This repository was archived by the owner on Jul 31, 2024. It is now read-only.

Commit e1b3000

Browse files
update documentation
1 parent e86c738 commit e1b3000

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

doc/RFC_XR_Fragments.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ <h2 id="media-fragments-and-datatypes">media fragments and datatypes</h2>
569569
<p>Example URI&rsquo;s:</p>
570570

571571
<ul>
572-
<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>
572+
<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>
573573
<li><code>https://images.org/credits.jpg#t=0&amp;sxy=l:0,0.1</code> (infinite vertical texturescrolling)</li>
574574
<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>
575575
</ul>

doc/RFC_XR_Fragments.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ These are automatic fragment-to-metadata mappings, which only trigger if the 3D
275275
| temporal W3C media fragment * | t=[l:]x,y | l:0,1 | play [as loop] between `x` and `y` |
276276
| temporal W3C media fragment * | s=x[,y] | 1 | set playback speed of audio/video/3D anim |
277277
| 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] |
278-
| temporal W3C media fragment * | u:<uniform>=<string|float|vec2|vec3|vec4> | u.color=1,0,0 | set shader uniform value |
278+
| temporal W3C media fragment * | u:<uniform>=<string|float|vec2|vec3|vec4> | u:color=1,0,0 | set shader uniform value |
279279

280280
> \* = this is extending the [W3C media fragments](https://www.w3.org/TR/media-frags/#mf-advanced) with finer playback/viewport-control:
281281
@@ -289,7 +289,7 @@ These are automatic fragment-to-metadata mappings, which only trigger if the 3D
289289

290290
Example URI's:
291291

292-
* `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)
292+
* `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)
293293
* `https://images.org/credits.jpg#t=0&sxy=l:0,0.1` (infinite vertical texturescrolling)
294294
* `https://video.org/organogram.mp4#t=0&sxy:0.1,0.1&xywh=500,500,480,640` (animated zoom towards region in video)
295295

doc/RFC_XR_Fragments.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ Internet-Draft XR Fragments February 2024
593593

594594
Example URI's:
595595

596-
* https://shaders.org/plasma.glsl#t=0&u.col1=1,0,0&u.col2=0,1,0
596+
* https://shaders.org/plasma.glsl#t=0&u:col1=1,0,0&u:col2=0,1,0
597597
(red-green shader plasma starts playing from time-offset 0)
598598
* https://images.org/credits.jpg#t=0&sxy=l:0,0.1 (infinite vertical
599599
texturescrolling)

doc/RFC_XR_Fragments.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ That way, if the link gets shared, the XR Fragments implementation at <tt>https:
466466
</table><t>Example URI's:</t>
467467

468468
<ul spacing="compact">
469-
<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>
469+
<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>
470470
<li><tt>https://images.org/credits.jpg#t=0&amp;sxy=l:0,0.1</tt> (infinite vertical texturescrolling)</li>
471471
<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>
472472
</ul>

0 commit comments

Comments
 (0)