I am attempting to incorporate a blurred texture into my Three.js scene, but the results are not what I expected.
Canvas:
var c = document.getElementById("myCanvas");
var context1 = c.getContext("2d");
context1.filter = "blur(16px)";
context1.beginPath();
context1.fillStyle = "red";
context1.moveTo(35, 65);
context1.lineTo(905, 55);
context1.lineTo(605, 155);
context1.lineTo(65, 105);
context1.fill();
Canvas texture: http://jsfiddle.net/7Lzag9kc/
Three.js material:
var texture1 = new THREE.Texture(canvas1)
texture1.needsUpdate = true;
var material = new THREE.MeshBasicMaterial({
map: texture1,
transparent: true,
side: THREE.DoubleSide,
alphaTest: 0.5
});
Three.js scene: http://jsfiddle.net/h31wv2xb/5/
What could be the issue here?