New pattern
Closed this issue · 1 comments
boytchev commented
Consider this (looks like Sun's surface)
var vec = new THREE.Vector3(1,0,1);
var eu = new THREE.Euler();
function pattern( x, y, z, color, options, u, v, px, py )
{
var s = 10//noise(x,y,z);
vec.set(x,y,z)
for(var i=0; i<10; i++)
{
eu.set(s*x,s*y,s*z);
vec.applyEuler(eu);
s=s*1.1;
}
var k = (1+noise(vec.x,vec.y,vec.z))/2
color.setHSL( 0, 0, k );
}
boytchev commented
Implemented as "photosphere" pattern.