<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[GLSL Chromakey]]></title><description><![CDATA[<p>Hey there,</p>
<p>I just finished messing around with getting some glsl chromakey / green-screen shader code I found at shadertoy.com working in Izzy and thought I might share it here.</p>
<p>You can copy and paste the code below into a new GLSL actor. You can also use this user actor:<a href="/assets/uploads/files/1617678676876-chromakey.iua3">Chromakey++.iua3</a></p>
<p></p>
<p>// this was converted into izziease from a bit of code "Created by jackdavenport in 2015-05-30" <br />// it may be found here <a href="https://www.shadertoy.com/view/llBGWc">https://www.shadertoy.com/view...</a></p>
<p>// ISADORA_FLOAT_PARAM(thresh, thsh, 0.0, 1.0, 1.0, "Threshold amount.");</p>
<p>uniform float thresh;</p>
<p>// ISADORA_FLOAT_PARAM(padd, padd, 0.0, 1.0, 1.0, "Padding amount.");</p>
<p>uniform float padd;</p>
<p>// ISADORA_FLOAT_PARAM(red_color, red, 0.0, 1.0, 1.0, "Amount of red to key out.");<br />// ISADORA_FLOAT_PARAM(green_color, gren, 0.0, 1.0, 1.0, "Amount of green to key out.");<br />// ISADORA_FLOAT_PARAM(blue_color, blue, 0.0, 1.0, 1.0, "Amount of blue to key out.");</p>
<p>uniform float red_color;<br />uniform float green_color;<br />uniform float blue_color;</p>
<p>void mainImage ( out vec4 fragColor, in vec2 fragCoord )<br />{<br /> vec2 uv = fragCoord.xy / iResolution.xy;<br />    <br />    vec4 greenScreen = vec4(red_color, green_color, blue_color, 1.0);<br />    vec4 color = texture(iChannel0, uv);<br />    <br />    vec3 diff = color.xyz - greenScreen.xyz;<br />    float fac = smoothstep(thresh-padd,thresh+padd, dot(diff,diff));<br />    <br />    color = mix(color, texture(iChannel1, uv), 1.-fac);<br /> fragColor = color;<br />}</p>]]></description><link>https://community.troikatronix.com/topic/7300/glsl-chromakey</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 09:41:15 GMT</lastBuildDate><atom:link href="https://community.troikatronix.com/topic/7300.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Apr 2021 02:58:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GLSL Chromakey on Tue, 06 Apr 2021 20:00:40 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1435">@woland</a></p><p>I would love to do that, was not sure if it is up to snuff I suppose and so shied away from that - but will do.</p><p></p><p>-alex</p><p></p>]]></description><link>https://community.troikatronix.com/post/45651</link><guid isPermaLink="true">https://community.troikatronix.com/post/45651</guid><dc:creator><![CDATA[Aolis]]></dc:creator><pubDate>Tue, 06 Apr 2021 20:00:40 GMT</pubDate></item><item><title><![CDATA[Reply to GLSL Chromakey on Tue, 06 Apr 2021 12:02:36 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/146">@aolis</a></p><p>It'd be great if you could add this to the <a href="https://troikatronix.com/add-ons/" target="_blank">TroikaTronix Add-Ons page</a>, as it's the ideal place to archive useful tools for the community.</p><p><br />Best wishes,</p><p>Woland</p>]]></description><link>https://community.troikatronix.com/post/45629</link><guid isPermaLink="true">https://community.troikatronix.com/post/45629</guid><dc:creator><![CDATA[Woland]]></dc:creator><pubDate>Tue, 06 Apr 2021 12:02:36 GMT</pubDate></item></channel></rss>