Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
3 Fix copy-paste markup error
source | link

I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone.

GLSL

vec3 xy2rgb3( in vec2 pos ) {<br>
    vec2 rc = pos * 8.0;<br>0;
    vec2 mp = fract( rc );<br>;
    rc = (rc - mp) * 0.125;<br>125;
    return vec3( (rc.y * 0.125) + rc.x, mp );<br>;
}

The live editable version can be found here xy2rgb3/rgb3toxy2.

enter image description here

I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone.

GLSL

vec3 xy2rgb3( in vec2 pos ) {<br>
    vec2 rc = pos * 8.0;<br>
    vec2 mp = fract( rc );<br>
    rc = (rc - mp) * 0.125;<br>
    return vec3( (rc.y * 0.125) + rc.x, mp );<br>
}

The live editable version can be found here xy2rgb3/rgb3toxy2.

enter image description here

I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone.

GLSL

vec3 xy2rgb3( in vec2 pos ) {
    vec2 rc = pos * 8.0;
    vec2 mp = fract( rc );
    rc = (rc - mp) * 0.125;
    return vec3( (rc.y * 0.125) + rc.x, mp );
}

The live editable version can be found here xy2rgb3/rgb3toxy2.

enter image description here

2 Code snippet formatry
source | link

I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone.

GLSL

vec3 xy2rgb3( in vec2 pos ) {
vec2 rc = pos * 8.0;
vec2 mp = fract( rc );
rc = (rc - mp) * 0.125;
return vec3( (rc.y * 0.125) + rc.x, mp );
}

vec3 xy2rgb3( in vec2 pos ) {<br>
    vec2 rc = pos * 8.0;<br>
    vec2 mp = fract( rc );<br>
    rc = (rc - mp) * 0.125;<br>
    return vec3( (rc.y * 0.125) + rc.x, mp );<br>
}

The live editable version can be found here xy2rgb3/rgb3toxy2.

enter image description here

I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone.

GLSL

vec3 xy2rgb3( in vec2 pos ) {
vec2 rc = pos * 8.0;
vec2 mp = fract( rc );
rc = (rc - mp) * 0.125;
return vec3( (rc.y * 0.125) + rc.x, mp );
}

The live editable version can be found here xy2rgb3/rgb3toxy2.

enter image description here

I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone.

GLSL

vec3 xy2rgb3( in vec2 pos ) {<br>
    vec2 rc = pos * 8.0;<br>
    vec2 mp = fract( rc );<br>
    rc = (rc - mp) * 0.125;<br>
    return vec3( (rc.y * 0.125) + rc.x, mp );<br>
}

The live editable version can be found here xy2rgb3/rgb3toxy2.

enter image description here

1
source | link

I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone.

GLSL

vec3 xy2rgb3( in vec2 pos ) {
vec2 rc = pos * 8.0;
vec2 mp = fract( rc );
rc = (rc - mp) * 0.125;
return vec3( (rc.y * 0.125) + rc.x, mp );
}

The live editable version can be found here xy2rgb3/rgb3toxy2.

enter image description here