Outline Shader for Ren'Py
A downloadable shader
Overview
Easily add outlines to images in Ren'Py without requiring extra assets. Perfect for button hover states, highlighting objects of interest, differentiating the speaking character, UI effects, and more.
Features
- Adjust the outline thickness and colour. Supports translucent colours.
- Set a different colour for the inner and outer outline, including a transparent outer outline for a glow effect
- Offset the outline to create drop shadow effects
- Multiple arguments for improving the smoothness of edges, the glow of the gradient, and the blending between two colours
- Fully compatible with layered images, image composites, animated images, and more.
As the shader passes arguments via ATL, you can also animate the outline via ATL - for example, by adjusting the outline offsets over time, or changing its colour or width.
Instructions
Download outlines.zip and unzip it to get outline_shader.rpy. Drop outline_shader.rpy into your game folder and try some of the presets or play around with the outline_transform arguments. An example label is provided with some demo transforms, which you can try out by jumping to the label outline_test.
Compatibility
This tool requires Ren'Py 7.4+ and config.gl2 to be True. It has been tested for compatibility with Ren'Py 7.5-7.6 and 8.0-8.2. If you have any issues, please make a post in the forums below.
Terms of Use
You may:
- Use this code in commercial and noncommercial projects, provided you package the code into an rpa file for release - the code to do so is included in the files.
- Modify and edit this code to suit your needs.
You may not:
- Resell all or part of this code as-is or sell it with modifications.
- Release any projects created using this code without providing attribution.
Attribution must be credited as Feniks, with a link to either the page with this code or to https://feniksdev.com.
Credits
Book, potion, plant, and dagger assets by ClaraNoctis from https://claranoctis.itch.io/fantasy-objects-pack
Character asset by Fülli from https://fuelli.itch.io/free-to-use-character-sprites
Waving Kuma-Dino from Hello Friend.
Final Notes
Next week is another tutorial week! Finally back onto a regular alternating schedule. I'll make a general update post on itch.io here when it's available, and you'll be able to find it on feniksdev.com.
If you're interested in shaders, you might also like my Ripple Transition shader, found here:
See you next week!
Updated | 4 days ago |
Status | Released |
Category | Assets |
Rating | Rated 5.0 out of 5 stars (5 total ratings) |
Author | Feniks |
Genre | Visual Novel |
Made with | Ren'Py |
Tags | Effects, Graphical User Interface (GUI), Kinetic Novel, Ren'Py, User Interface (UI) |
Purchase
In order to download this shader you must purchase it at or above the minimum price of $5 USD. You will get access to the following files:
Development log
- v1.2 Update + Bluesky4 days ago
- v1.1 Update!May 11, 2024