|
@@ -19,7 +19,7 @@ void main(void) {
|
|
|
//float opacity = dist * smoothstep(edgeDistance - edgeWidth, edgeDistance + edgeWidth, dist);
|
|
|
|
|
|
//float opacity = smoothstep(0.25, 0.75, dist);
|
|
|
- gl_FragColor = vec4(vColor.xyz*dist, 1.0);
|
|
|
+ gl_FragColor = vec4(vColor.xyz*dist, vColor.a);
|
|
|
#else
|
|
|
vec4 color = texture2D(diffuseSampler, vUV);
|
|
|
gl_FragColor = color*vColor;
|