glsl-triplanar-mapping
v1.0.1
Published
📐 GLSL Triplanar texture mapping. glslify format.
Downloads
54
Maintainers
Readme
glsl-triplanar-mapping
📐 GLSL Triplanar texture mapping. glslify format.
Inspired by this article.
NPM Installation
npm install glsl-triplanar-mapping
Usage
#pragma glslify: triplanarMapping = require(glsl-triplanar-mapping)
void main() {
vec3 color = triplanarMapping(texture, normal, position);
gl_FragColor = vec4(color, 1.0);
}