threejs-syntax-shaders

Installation
SKILL.md

threejs-syntax-shaders

Quick Reference

ShaderMaterial vs RawShaderMaterial

Aspect ShaderMaterial RawShaderMaterial
Built-in uniforms Automatically injected NONE -- you MUST declare everything
Built-in attributes Automatically declared NONE -- you MUST declare everything
#include <chunk> Supported NOT supported
Precision declaration Automatic You MUST add precision mediump float;
Use case Extend Three.js rendering Full shader control, porting external shaders
Performance Slight overhead from unused built-ins Minimal shader overhead

Uniform Type Map

GLSL Type JavaScript Value
Related skills
Installs
8
GitHub Stars
1
First Seen
Apr 1, 2026