Skip to content

Commit

Permalink
Update eggs.js
Browse files Browse the repository at this point in the history
  • Loading branch information
boytchev committed Dec 29, 2024
1 parent 6af4fa2 commit b4c22ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eggs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var eggs = Fn( ( params ) => {

var n = mx_worley_noise_float( pos ).toVar();
var whites = n.add( sizeWhite ).pow( 8 ).oneMinus().clamp( -0.5, 1 );
var yolks = n.add( sizeYolk ).pow( 18 ).oneMinus().pow( 0.4 ).clamp( 0, 1 );
var yolks = n.add( sizeYolk ).pow( 18 ).oneMinus().clamp(0,1).pow( 0.4 ).clamp( 0, 1 );

return mix( params.colorBackground, mix( params.colorWhite, params.colorYolk, yolks ), whites );

Expand Down

0 comments on commit b4c22ac

Please sign in to comment.