Buckets:

imerfanrajabee's picture
download
raw
512 Bytes
import { uv } from '../accessors/UV.js';
import { Fn } from '../tsl/TSLBase.js';
/**
* Creates a 2x2 checkerboard pattern that can be used as procedural texture data.
*
* @tsl
* @function
* @param {Node<vec2>} coord - The uv coordinates.
* @return {Node<float>} The result data.
*/
export const checker = /*@__PURE__*/ Fn( ( [ coord = uv() ] ) => {
const uv = coord.mul( 2.0 );
const cx = uv.x.floor();
const cy = uv.y.floor();
const result = cx.add( cy ).mod( 2.0 );
return result.sign();
} );

Xet Storage Details

Size:
512 Bytes
·
Xet hash:
3abbd902718f627e4cb481e37b6976e21d271321c0839fd6cc9040d8d8677a2a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.