1
So It seems I has to use this line
return sample(tc, r)* smoothstep(1.0, 0.0, r);
which solves the problem...Thank you!
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
glsl × 870opengl × 563
shaders × 282
c++ × 95
fragment-shader × 76
textures × 50
lighting × 49
hlsl × 48
opengl-es × 38
opengl-es2 × 37
lwjgl × 30
java × 29
shadows × 27
deferred-rendering × 26
rendering × 25
shadow-mapping × 25
webgl × 23
2d × 22
libgdx × 21
directx × 21
graphics × 20
mathematics × 19
graphics-programming × 18
unity × 15
matrix × 15