Skip to content

Instantly share code, notes, and snippets.

View noizfactory's full-sized avatar

Sachin Shrestha noizfactory

View GitHub Profile

Download and install dependencies

sudo apt install wget alien libjpeg62 libcurl4 libaudiofile1 libtinfo5 python mesa-opencl-icd xfonts-100dpi xfonts-75dpi

wget http://ftp.br.debian.org/debian/pool/main/o/openssl1.0/libssl1.0.2_1.0.2u-1~deb9u1_amd64.deb
wget https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/33/Everything/x86_64/os/Packages/l/libpng15-1.5.30-11.fc33.x86_64.rpm

fakeroot alien -vc libpng15-1.5.30-11.fc33.x86_64.rpm
float fract(float a) {
return a - floor(a);
}
point fract(point p) {
return point(fract(p[0]), fract(p[1]), fract(p[2]));
}
float lerp(float a, float b, float t) {
return (1 - t) * a + t * b;
}
This is a simple mip-map debug texture created following the steps outlined in this article:
https://arnoldsupport.com/2017/11/02/using-oiiotool-and-maketx-to-create-a-mipmap-debug-texture/