shader-development

shader-development is a cursor rule for Cursor from hexianWeb/Third-Person-MC. It costs 0 tokens per session (319 once invoked), scanned A, original, MIT.

A set of coding rules for GLSL shader development, including file organization, naming, edge-case handling, performance, and texture use. Textures are images or data sampled by a shader while drawing.

In plain words
What is it for?
Use it when writing or reviewing vertex and fragment shaders, shared shader includes, texture coordinates, mipmaps, precision choices, and shader mathematics.
Why use it?
It helps keep shader code understandable and reduces avoidable rendering cost from extra conditions, texture lookups, or inefficient calculations.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when writing or reviewing vertex and fragment shaders, shared shader includes, texture coordinates, mipmaps, precision choices, and shader mathematics.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/hexianweb/third-person-mc/shader-development
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for shader-development

README.md
[![agentmods](https://agentmods.dev/badge/rules/hexianweb/third-person-mc/shader-development/github.svg)](https://agentmods.dev/rules/hexianweb/third-person-mc/shader-development)
Your own site
<a href="https://agentmods.dev/rules/hexianweb/third-person-mc/shader-development"><img src="https://agentmods.dev/badge/rules/hexianweb/third-person-mc/shader-development/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for shader-development

Your own site · 80×15
<a href="https://agentmods.dev/rules/hexianweb/third-person-mc/shader-development"><img src="https://agentmods.dev/badge/rules/hexianweb/third-person-mc/shader-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 319 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00319
Opus 5.5 $0.00000 $0.00128
Sonnet 5.5 $0.00000 $0.00064
Haiku 4.5 $0.00000 $0.00032

Measured 3mo ago against content hash 4b8318c5c825, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

shader-development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/shader-development.mdc · 59 lines

What it actually says

Shader Development Guidelines

Code Organization

  • Use clear naming conventions for uniforms and varyings
  • Organize shader code into logical sections (uniforms, varyings, functions, main)
  • Use includes for shared functionality
  • Document complex mathematical operations
  • Keep shader files focused and single-purpose

Performance Optimization

  • Minimize conditional statements in fragment shaders
  • Use built-in GLSL functions when available
  • Optimize vector operations
  • Minimize texture lookups
  • Use appropriate precision qualifiers
  • Avoid dynamic loops where possible
  • Cache repeated calculations

Best Practices

  • Initialize all variables
  • Use appropriate data types
  • Handle edge cases gracefully
  • Implement proper error handling
  • Use preprocessor directives effectively
  • Follow GLSL version compatibility guidelines
  • Document performance implications

Texture Management

  • Use appropriate texture formats
  • Implement proper texture coordinate handling
  • Use texture arrays when appropriate
  • Handle texture boundaries properly
  • Implement proper mipmap usage

Mathematics

  • Use efficient mathematical operations
  • Implement proper interpolation methods
  • Use appropriate coordinate spaces
  • Handle numerical precision issues
  • Document complex mathematical concepts

Debugging

  • Use debug output uniforms
  • Implement visual debugging modes
  • Use appropriate error checking
  • Document known limitations
  • Implement fallbacks for unsupported features

Cross-Platform Compatibility

  • Test on multiple GPU vendors
  • Handle precision differences
  • Use appropriate extensions
  • Document platform-specific issues
  • Implement fallbacks for unsupported features
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 59 lines · 319 tokens per session scan A 4b8318c5c825

Subscribe to this mod's changes

shader-development is a cursor rule published in the GitHub repository hexianWeb/Third-Person-MC (198 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 319 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

shader-development compared with cursor rules from other repositories

shader-development next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shader-developmenthexianWeb/Third-Person-MCCursor rule1984mo agoMITA0Cursor
action-development4thfever/cultivation-world-simulatorCursor rule2.2k3mo agononeA0Cursor
story-event-system4thfever/cultivation-world-simulatorCursor rule2.2k3mo agononeA0Cursor
sect-system4thfever/cultivation-world-simulatorCursor rule2.2k3mo agononeA0Cursor
roleplay-mode4thfever/cultivation-world-simulatorCursor rule2.2k3mo agononeA0Cursor
map-system4thfever/cultivation-world-simulatorCursor rule2.2k3mo agononeA0Cursor
meta-quest-agentic-toolsoculus-samples/Unity-MovementCursor rule39218d agononeA152Cursor