Browse queriesAskGL
Shader Refactor
Optimize and document existing shader code
- Creates
- Code
- Setup
- 2 minutes
- Starting points
- 1 version
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:
sample code snippet
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.
>code