AI Shader logo

AI Shader

Free

ChatGPT-powered shader generator for Unity.

FreeFree tier
Inputs: textOutputs: code
Type
Open Source

About AI Shader

AI Shader is an open-source, proof-of-concept tool that integrates ChatGPT with the Unity game engine to generate shaders from natural language prompts. Developed by Keijiro Takahashi, it allows developers to describe the visual effect they want in plain English and receive a corresponding shader file that can be used directly in Unity projects. The tool requires a ChatGPT API key, which must be set in the Unity Project Settings, and stores the key locally in a user settings file. As a proof-of-concept, it demonstrates the potential of using large language models to assist in real-time graphics programming, but its production readiness and scope of supported shader types should be verified by users.

Key Features

Generates Unity shaders from natural language descriptions using ChatGPT
Open-source implementation available on GitHub
Integrates directly into Unity via the Project Settings panel
Proof-of-concept demonstrating AI-assisted shader creation
Requires a ChatGPT API key for operation
Stores API key in a local user settings file

Pros & Cons

Pros
  • Open-source and free to use (requires own API key)
  • Leverages ChatGPT's natural language understanding for shader generation
  • Direct integration with Unity simplifies workflow
  • Useful for rapid prototyping and experimentation
  • Community-driven development with public repository
Cons
  • Proof-of-concept status; production reliability should be verified
  • Requires a ChatGPT API key, which incurs usage costs from OpenAI
  • API key stored locally; users must manage security when sharing projects
  • Limited to generating shaders; does not handle other Unity asset types
  • Output quality depends on ChatGPT's understanding of shader concepts

Best For

Rapid prototyping of visual effects in UnityLearning shader programming by exampleExploring AI-assisted game development workflowsGenerating custom shaders without manual codingEducational demonstrations of AI in graphics programming

FAQ

Do I need a ChatGPT API key to use AI Shader?
Yes, based on the repository documentation, you must generate an API key from your OpenAI account and set it in the Unity Project Settings to use the tool.
Is AI Shader free to use?
The tool itself is open-source and free, but you will need to pay for ChatGPT API usage according to OpenAI's pricing. Exact costs depend on usage.
What types of shaders can AI Shader generate?
The repository describes it as a shader generator for Unity, but the specific types of shaders (e.g., vertex, fragment, surface) are not detailed. Users should test its capabilities.
Is AI Shader production-ready?
The repository labels it as a proof-of-concept implementation. Its reliability and suitability for production use should be evaluated by each user.
How do I install AI Shader?
You can clone or download the repository from GitHub and import it into your Unity project. Detailed setup instructions are provided in the README.
Is my API key safe when using AI Shader?
The API key is stored in a local file (UserSettings/AIShaderSettings.asset). The documentation advises excluding this directory when sharing projects to avoid exposing the key.