Toolverse
All skills

threejs-shaders

by CloudAI-X

Three.js shaders - GLSL, ShaderMaterial, uniforms, custom effects. Use when creating custom visual effects, modifying vertices, writing fragment shaders, or extending built-in materials.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
CloudAI-X
Category
Frontend
Views
28

About this skill

Three.js shaders - GLSL, ShaderMaterial, uniforms, custom effects. Use when creating custom visual effects, modifying vertices, writing fragment shaders, or extending built-in materials.

How to use

  1. Zainstaluj skill threejs-shaders w swoim projekcie Three.js. Upewnij się, że masz zainstalowaną bibliotekę Three.js.

  2. Utwórz nowy ShaderMaterial, definiując uniforms (zmienne przekazywane do shaderów), vertexShader (kod GLSL dla wierzchołków) i fragmentShader (kod GLSL dla pikseli). Skorzystaj z wbudowanych uniformów Three.js takich jak projectionMatrix, modelViewMatrix czy cameraPosition.

  3. Napisz vertex shader — kod GLSL, który przetwarza każdy wierzchołek geometrii. Minimum to transformacja pozycji wierzchołka za pomocą macierzy projekcji i widoku.

  4. Napisz fragment shader — kod GLSL, który określa kolor każdego piksela. Możesz odwoływać się do uniformów (np. koloru, czasu) i interpolowanych wartości z vertex shadera.

  5. Jeśli potrzebujesz pełnej kontroli nad uniformami i atrybutami, użyj RawShaderMaterial zamiast ShaderMaterial — sam zdefiniujesz wszystkie macierze transformacji i atrybuty wierzchołków.

  6. W pętli animacji aktualizuj uniforms — na przykład zmienną time, aby uzyskać animowane efekty. Przypisz material do geometrii i renderuj scenę.

Related skills

2d-games

by davila7

2D game development principles. Sprites, tilemaps, physics, camera.

Frontend
2674

brainstorming

by obra

Use when creating or developing, before writing code or implementation plans - refines rough ideas into fully-formed designs through collaborative questioning, alternative exploration, and incremental validation. Don't use during clear 'mechanical' processes

Frontend
49170

shadcn-ui

by josechifflet

shadcn/ui component patterns for Next.js 16 applications. This skill should be used when adding UI components, customizing component styles, composing primitives, or integrating forms with react-hook-form. Covers installation, customization, composition patterns, and

Frontend
157206

interactive-dashboard-builder

by anthropics

Build self-contained interactive HTML dashboards with Chart.js, dropdown filters, and professional styling. Use when creating dashboards, building interactive reports, or generating shareable HTML files with charts and filters that work without a server.

Frontend
2298

frontend-slides

by sickn33

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual

Frontend
65135

theme-factory

by anthropics

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

Frontend
40139