yta-editor-nodes-gpu 0.0.2__tar.gz → 0.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yta-editor-nodes-gpu
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Youtube Autonomous Main Editor Nodes GPU module
5
5
  License-File: LICENSE
6
6
  Author: danialcala94
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "yta-editor-nodes-gpu"
3
- version = "0.0.2"
3
+ version = "0.0.3"
4
4
  description = "Youtube Autonomous Main Editor Nodes GPU module"
5
5
  authors = [
6
6
  {name = "danialcala94",email = "danielalcalavalera@gmail.com"}
@@ -155,19 +155,33 @@ class SlideTransitionProcessorGPU(_TransitionProcessorGPU):
155
155
  out vec4 output_color;
156
156
 
157
157
  void main() {
158
- // Horizontal version (right to left)
159
- vec2 uv_first = v_uv + vec2(-progress, 0.0);
160
- vec2 uv_second = v_uv + vec2(1.0 - progress, 0.0);
158
+ // Horizontal version (slide to right)
159
+ //vec2 uv_first = v_uv + vec2(-progress, 0.0);
160
+ //vec2 uv_second = v_uv + vec2(1.0 - progress, 0.0);
161
+
162
+ // Horizontal version (slide to left)
163
+ vec2 uv_first = v_uv + vec2(progress, 0.0);
164
+ vec2 uv_second = v_uv + vec2(-1.0 + progress, 0.0);
161
165
 
162
166
  vec4 color_first = texture(first_texture, uv_first);
163
167
  vec4 color_second = texture(second_texture, uv_second);
164
168
 
165
- if (uv_first.x < 0.0) {
169
+ // Horizontal version (slide to right)
170
+ //if (uv_first.x < 0.0) {
171
+ // output_color = color_second;
172
+ //} else if (uv_second.x > 1.0) {
173
+ // output_color = color_first;
174
+ //} else {
175
+ // // A and B frames are shown at the same time
176
+ // output_color = mix(color_first, color_second, progress);
177
+ //}
178
+
179
+ // Horizontal version (slide t o left)
180
+ if (uv_first.x > 1.0) {
166
181
  output_color = color_second;
167
- } else if (uv_second.x > 1.0) {
182
+ } else if (uv_second.x < 0.0) {
168
183
  output_color = color_first;
169
184
  } else {
170
- // A and B frames are shown at the same time
171
185
  output_color = mix(color_first, color_second, progress);
172
186
  }
173
187
  }