From 5ce71c1f32cd0090841428fdafbc5d32e93442dd Mon Sep 17 00:00:00 2001 From: Eleftherios Garyfallidis Date: Fri, 21 Aug 2020 13:52:24 -0400 Subject: [PATCH] BF: Out should be varying --- docs/tutorials/04_shaders/viz_shader.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/tutorials/04_shaders/viz_shader.py b/docs/tutorials/04_shaders/viz_shader.py index b6a65206f..f33db9433 100644 --- a/docs/tutorials/04_shaders/viz_shader.py +++ b/docs/tutorials/04_shaders/viz_shader.py @@ -51,7 +51,7 @@ fragment_shader_code_decl = \ """ uniform float time; - out vec4 myVertexVC; + varying vec4 myVertexVC; """ fragment_shader_code_impl = \ @@ -59,7 +59,7 @@ vec2 iResolution = vec2(1024,720); vec2 uv = myVertexVC.xy/iResolution; vec3 col = 0.5 + 0.5 * cos((time/30) + uv.xyx + vec3(0, 2, 4)); - fragOutput0 = vec4(col, 1.0); + fragOutput0 = vec4(col, fragOutput0.a); """ shader_to_actor(utah, "vertex", impl_code=vertex_shader_code_impl, @@ -108,11 +108,6 @@ def shader_callback(_caller, _event, calldata=None): tb = ui.TextBlock2D() tb.message = "Hello Shaders" -############################################################################### -# Change the property of the actor - -utah.GetProperty().SetOpacity(0.5) - ############################################################################### # Show Manager #