File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/Interface/Modules/Render/ES/shaders Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,6 @@ void main()
7070 float spec = max (0.0 , dot (reflection, uCamViewVec));
7171
7272 spec = pow (spec, uSpecularPower);
73- gl_FragColor = diffuse * spec * uSpecularColor + diffuse * uDiffuseColor + uAmbientColor;
73+ gl_FragColor = vec4 (( diffuse * spec * uSpecularColor + diffuse * uDiffuseColor + uAmbientColor).rgb, uDiffuseColor.a) ;
7474}
7575
Original file line number Diff line number Diff line change @@ -73,9 +73,9 @@ void main()
7373 float spec = max (0.0 , dot (reflection, uCamViewVec));
7474
7575 vec4 diffuseColor = texture1D ( uTX0, vFieldData );
76- diffuseColor.a = uTransparency;
76+ // diffuseColor.a = uTransparency;
7777
7878 spec = pow (spec, uSpecularPower);
79- gl_FragColor = diffuse * spec * uSpecularColor + diffuse * diffuseColor + uAmbientColor;
79+ gl_FragColor = vec4 (( diffuse * spec * uSpecularColor + diffuse * diffuseColor + uAmbientColor).rgb, uTransparency) ;
8080}
8181
Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ void main()
7272 float spec = max (0.0 , dot (reflection, uCamViewVec));
7373
7474 vec4 diffuseColor = texture1D ( uTX0, vFieldData );
75- diffuseColor.a = uTransparency;
75+ // diffuseColor.a = uTransparency;
7676
7777 spec = pow (spec, uSpecularPower);
78- gl_FragColor = diffuse * spec * uSpecularColor + diffuse * diffuseColor + uAmbientColor;
78+ gl_FragColor = vec4 ( diffuse * spec * uSpecularColor + diffuse * diffuseColor + uAmbientColor).rgb, uTransparency) ;
7979}
8080
You can’t perform that action at this time.
0 commit comments