defold-shaders-editing

Edits Defold shader files (.vp, .fp, .glsl) to conform to GLSL standards.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/zarkua/Defolancer --skill defold-shaders-editing-zarkua
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: defold-shaders-editing
Source: https://github.com/zarkua/Defolancer/tree/main/.agents/skills/defold-shaders-editing
Command: npx skills add https://github.com/zarkua/Defolancer --skill defold-shaders-editing-zarkua

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers create and edit Defold shader files (.vp, .fp, .glsl) accurately, ensuring they conform to modern GLSL practices and Defold pipeline requirements, reducing errors and iteration time.

Core Features & Use Cases

  • Edit vertex shaders (.vp) and fragment shaders (.fp) to match the latest GLSL standards and Defold expectations.
  • Create and manage GLSL include snippets (.glsl) with proper header guards and extensions.
  • Ensure compatibility across platforms (OpenGL, OpenGL ES, WebGL) using #version 140 and preprocessor guards.

Quick Start

Create a new .vp/.fp pair for your Defold project, start each file with #version 140, and wire its uniforms and attributes to your material's constants and samplers.

Frequently Asked Questions about defold-shaders-editing

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

FAQPage Schema
How do I create GLSL shaders in Defold that work across platforms?

To create cross-platform GLSL shaders in Defold, start each .vp or .fp file with #version 140 and use preprocessor guards. This ensures compatibility across OpenGL, OpenGL ES, and WebGL pipelines.

How do I manage GLSL include snippets in a Defold project?

Manage GLSL include snippets by creating .glsl files equipped with proper header guards and extensions. This maintains consistency and prevents duplication when sharing code between vertex and fragment shaders.

How do I wire shader uniforms to Defold materials?

Wire shader uniforms by defining constants and samplers in your .vp and .fp files, then linking them to the corresponding properties in your Defold material assets to ensure correct rendering behavior.

Why are my Defold shader edits failing on WebGL?

Defold shader edits fail on WebGL when modern GLSL syntax lacks preprocessor guards for platform constraints. Apply #version 140 and conditional checks to ensure OpenGL ES and WebGL compatibility.