Skip to content

Instantly share code, notes, and snippets.

@Quackdoc
Last active September 15, 2023 21:55
Show Gist options
  • Save Quackdoc/9a02446193414cef7093866efc22d4ca to your computer and use it in GitHub Desktop.
Save Quackdoc/9a02446193414cef7093866efc22d4ca to your computer and use it in GitHub Desktop.
olive motion blur try 1
<?xml version="1.0"?>
<olive version="230220">
<nodes version="1">
<node version="1" id="org.olivevideoeditor.Olive.shader" ptr="2641025001424">
<label>unnamed</label>
<input id="enabled_in">
<primary>
<keyframing>0</keyframing>
<standard>
<track>true</track>
</standard>
</primary>
</input>
<input id="source">
<primary>
<standard>
<track>#version 150
//OVE shader_name:
//OVE shader_description:
//OVE main_input_name: Input
uniform sampler2D tex_in;
//OVE name: my input
//OVE type: TEXTURE
//OVE flag: NOT_KEYFRAMABLE
//OVE description:
uniform sampler2D tex2_in;
//OVE name: my float
//OVE type: FLOAT
//OVE flag: NOT_CONNECTABLE
//OVE min: 0.0
//OVE max: 100.0
//OVE default: 10.0
//OVE description:
uniform float BLURAMOUNT;
//OVE end
// pixel coordinates in range [0..1]x[0..1]
in vec2 ove_texcoord;
// output color
out vec4 frag_color;
void main(void) {
vec4 textureColor = texture(tex_in, ove_texcoord);
vec4 textureColor2 = texture(tex2_in, ove_texcoord);
frag_color= textureColor/BLURAMOUNT + (BLURAMOUNT-1.)*textureColor2/BLURAMOUNT;;
}
</track>
</standard>
</primary>
</input>
<input id="issues">
<primary>
<standard>
<track>None</track>
</standard>
</primary>
</input>
<input id="tex_in">
<primary>
<standard>
<track></track>
</standard>
</primary>
</input>
<input id="tex2_in">
<primary>
<standard>
<track></track>
</standard>
</primary>
</input>
<input id="BLURAMOUNT">
<primary>
<keyframing>0</keyframing>
<standard>
<track>39.10000000000002</track>
</standard>
</primary>
</input>
<connections>
<connection input="tex2_in" element="-1">
<output>2641940957408</output>
</connection>
<connection input="tex_in" element="-1">
<output>2641693788944</output>
</connection>
</connections>
<hints>
<hint input="enabled_in" element="-1" version="1">
<types/>
<index>-1</index>
<tag></tag>
</hint>
<hint input="issues" element="-1" version="1">
<types/>
<index>-1</index>
<tag></tag>
</hint>
<hint input="source" element="-1" version="1">
<types/>
<index>-1</index>
<tag></tag>
</hint>
<hint input="tex_in" element="-1" version="1">
<types/>
<index>-1</index>
<tag></tag>
</hint>
</hints>
<caches>
<audio>{0624d654-bd2a-480d-9717-9e7c5a01b460}</audio>
<video>{f56e02a4-38c8-449d-a07a-8a6d5c54e91c}</video>
<thumb>{ad906f20-31b3-4aff-bf79-10c66f6ee08b}</thumb>
<waveform>{8e45ea1c-6500-436f-86c8-6559f1164efb}</waveform>
</caches>
<custom/>
</node>
<node version="1" id="org.olivevideoeditor.Olive.timeoffset" ptr="2641940957408">
<input id="enabled_in">
<primary>
<keyframing>0</keyframing>
<standard>
<track>true</track>
</standard>
</primary>
</input>
<input id="time_in">
<primary>
<keyframing>0</keyframing>
<standard>
<track>-1/10</track>
</standard>
</primary>
</input>
<input id="input_in">
<primary>
<standard>
<track></track>
</standard>
</primary>
</input>
<connections>
<connection input="input_in" element="-1">
<output>2641693788944</output>
</connection>
</connections>
<caches>
<audio>{abc8ed8b-9408-4045-87af-7bf249fbfce9}</audio>
<video>{35c983c7-6025-404b-b686-a7b757648bca}</video>
<thumb>{97b41e95-f51e-4870-8c9e-85e95b8db5de}</thumb>
<waveform>{e196be0a-be98-48b5-82a5-86b78b72bb12}</waveform>
</caches>
<custom/>
</node>
<properties>
<node ptr="2641025001424">
<expanded>0</expanded>
<x>-1.39394</x>
<y>-0.54321</y>
</node>
<node ptr="2641940957408">
<expanded>0</expanded>
<x>-2.28409</x>
<y>0.518519</y>
</node>
</properties>
</nodes>
</olive>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment