vtj-shader-development

Integrates and debugs GLSL shaders in Three.js and Vue 3 projects.

175|39|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/hexianWeb/Third-Person-MC --skill vtj-shader-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vtj-shader-development
Source: https://github.com/hexianWeb/Third-Person-MC/tree/main/.cursor/skills/vtj-shader-development
Command: npx skills add https://github.com/hexianWeb/Third-Person-MC --skill vtj-shader-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables developers to write and manage GLSL shaders within a Three.js + Vue 3 project using vite-plugin-glsl. It ensures shaders are organized in a dedicated directory and exposes uniforms via a debug panel.

Core Features & Use Cases

  • Shader import and management: allows importing .glsl files from src/shaders/ and includes support for includes.
  • ShaderMaterial debugging: automatically exposes uniforms to a UI for live tweaking.
  • Use Case: Create custom visual effects, skyboxes, and post-processing by wiring shader code to a ShaderMaterial and tweaking uniforms in real time.

Quick Start

Use the shader development skill to create a new shader under src/shaders/, configure vite-plugin-glsl in vite.config.js, and import shader modules as needed to drive a ShaderMaterial in three.js. Then run the dev server and adjust uniforms in the debug panel to see changes live.

Frequently Asked Questions about vtj-shader-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug GLSL shaders in a Three.js and Vue 3 project?

To debug GLSL shaders in Three.js and Vue 3, use a ShaderMaterial workflow that automatically exposes uniforms to a debug panel UI for live tweaking. This allows you to adjust shader properties in real time without restarting the dev server.

What is the best way to import .glsl files with includes in a Vite project?

The best way to import .glsl files with includes in Vite is using vite-plugin-glsl. It allows you to organize shaders under a dedicated directory like src/shaders/ and import them directly as modules to drive your Three.js ShaderMaterial.

Does vite-plugin-glsl work with Vue 3 for live shader uniform tuning?

Yes, vite-plugin-glsl works with Vue 3 to enable live shader uniform tuning. By configuring the plugin in vite.config.js and wiring shader code to a ShaderMaterial, a debug UI exposes per-uniform controls for real-time adjustments.

How to create custom visual effects using ShaderMaterial in Three.js?

To create custom visual effects using ShaderMaterial in Three.js, write vertex and fragment shaders in a src/shaders/ directory, import them via vite-plugin-glsl, and wire them to a ShaderMaterial. You can then tweak uniforms live in a debug panel to achieve effects like skyboxes.

Can I manage GLSL shader files under a dedicated directory in a Vite environment?

Yes, you can manage GLSL shader files under a dedicated directory such as src/shaders/ in a Vite environment. Using vite-plugin-glsl, you can import these .glsl files directly into your Three.js components while supporting shader includes.

Why do I need a debug panel for ShaderMaterial uniforms?

You need a debug panel for ShaderMaterial uniforms to visually tune shader parameters in real time. It solves the challenge of blindly guessing uniform values by exposing per-uniform debugging controls directly in the UI during development.