t3d-effect-composer
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -157,3 +157,2 @@ import { ShaderPostPass, BLEND_TYPE, RenderTarget2D, TEXTURE_FILTER } from 't3d'; | ||
attribute vec3 a_Position; | ||
attribute vec2 a_Uv; | ||
@@ -167,4 +166,3 @@ | ||
vec2 pos = a_Position.xz; | ||
pos.y = -pos.y; | ||
vec2 pos = a_Uv * 2.0 - 1.0; | ||
@@ -195,7 +193,6 @@ vec4 visibility = texture2D(occlusionMap, vec2(0.5, 0.5)) * 0.2; | ||
vec4 texture = texture2D(map, v_Uv); | ||
texture.a *= v_Visibility; | ||
gl_FragColor = texture; | ||
gl_FragColor.rgb *= color; | ||
float alpha = texture.a * step(v_Uv.x, 1.0) * step(v_Uv.y, 1.0) * v_Visibility; | ||
gl_FragColor = vec4(texture.rgb * color, alpha); | ||
} | ||
` | ||
}; |
{ | ||
"name": "t3d-effect-composer", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "EffectComposer for t3d.js", | ||
@@ -5,0 +5,0 @@ "type": "module", |
22866