Browse queries
Shader Refactor
Optimize and document existing shader code
- Creates
- Code
- Setup
- Instant
- Starting points
- 4 versions
See the full instruction
Everything is visible before you open it in Ask.
Ready-to-use query
Change the subject, details, or style before you run it.
/write @claude-sonnet-4-20250514
Refactor this shader for readability and performance:
{{shader_code}}
Requirements: preserve visual behavior, reduce redundant operations, and add comments for each major stage.
Return complete, runnable output with clean structure and sensible defaults.
Prioritize readability, accessibility, and maintainability.
!Be concrete and specific; avoid vague language.
!Return only the final output.
>codeChoose a starting version
Pick the version closest to the result you need.