Commit c061d567 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[STYLE #42] added missing spaces

parent 25ca1db0
...@@ -50,6 +50,7 @@ uniform float u_parameterWidth; ...@@ -50,6 +50,7 @@ uniform float u_parameterWidth;
void main() void main()
{ {
vec4 col = gl_Color; vec4 col = gl_Color;
//col.rgb = vec3( .7);
float widthHalf = u_parameterWidth / 2.0; float widthHalf = u_parameterWidth / 2.0;
// Streamribbon // Streamribbon
...@@ -59,11 +60,11 @@ void main() ...@@ -59,11 +60,11 @@ void main()
//if( col.g > u_parameterCenter + widthHalf || col.g < u_parameterCenter - widthHalf) discard; //if( col.g > u_parameterCenter + widthHalf || col.g < u_parameterCenter - widthHalf) discard;
// Slab // Slab
if( verpos.x > u_parameterCenter + widthHalf || verpos.x < u_parameterCenter - widthHalf ) discard; //if( verpos.x > u_parameterCenter + widthHalf || verpos.x < u_parameterCenter - widthHalf ) discard;
// calculate lighting // calculate lighting
float light = blinnPhongIlluminationIntensity( normalize( -v_normal ) ); float light = blinnPhongIlluminationIntensity( normalize( -v_normal ) );
col*=light; col *= light;
// finally, apply opacity // finally, apply opacity
col.a = u_opacity* 0.01; col.a = u_opacity* 0.01;
...@@ -72,9 +73,11 @@ void main() ...@@ -72,9 +73,11 @@ void main()
float dotNorm = dot( vec3( 0.0, 0.0, 1.0 ), normal ); float dotNorm = dot( vec3( 0.0, 0.0, 1.0 ), normal );
dotNorm *= sign( dotNorm ); dotNorm *= sign( dotNorm );
// View-dependent transparency // View-dependent transparency
//col.a=1-dotNorm*dotNorm; //col.a = 1 - dotNorm * dotNorm;
// Unnatural opposite effect // Unnatural opposite effect
//col.a=dotNorm*dotNorm; col.a = dotNorm* dotNorm;
gl_FragColor = col; gl_FragColor = col;
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment