Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New pattern #4

Open
boytchev opened this issue May 27, 2024 · 0 comments
Open

New pattern #4

boytchev opened this issue May 27, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@boytchev
Copy link
Owner

Add the following texture pattern (or it derivative):

image

function pattern( x, y, z, color, options, u, v, px, py )
{
	var k=0;
	
	var k1=0.5+0.5*noise(10*x,10*y,10*z);
	var k2=0.5+0.5*noise(20*x,20*y,20*z);
	
	k = 1-20*(k1-k2)**2;
	if( k<0.999 ) k==0;
	
//	if(xx==100)console.log(py,px,xx)
	
//	if( MathUtils.seededRandom(Math.round(px**2+py))>0.98 ) k=1;
	color.set(k,k,k);
	...
@boytchev boytchev added the enhancement New feature or request label May 27, 2024
@boytchev boytchev self-assigned this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant