Skip to content

Commit bc856d8

Browse files
committed
2 parents 116cbf1 + b47212e commit bc856d8

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

README.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,40 @@
1-
# gml-outline-shader-plus
2-
Outline Shader for GameMaker
1+
![image](https://user-images.githubusercontent.com/19487451/167883263-e96a9e7f-973c-4714-ad47-01253b2db670.png)
2+
3+
4+
Welcome to the outline-shader-drawer repository!
5+
6+
This shader is based on a Version of [Juju Adams](https://github.com/JujuAdams), credits to him for the basic implementation to draw a sprite outlined. He helped me in implementing varying outline strengths, and I took over from that point.
7+
8+
The shader now offers rich functionality and supports even drawing of rotating sprites, by using their bounding box to set up the surfaces needed to draw the correct outline and it also offers `Alpha Fading`.
9+
10+
What is Alpha Fading you ask?? Well, two pictures tell more than a thousand words:
11+
12+
| No alpha fading | Active alpha fading |
13+
|-|-|
14+
|![image](https://user-images.githubusercontent.com/19487451/167878549-e1cea8a9-813e-4a68-b7c9-f051d94b5880.png)|![image](https://user-images.githubusercontent.com/19487451/167878604-0ad44568-cb0f-4d36-aff1-e2b2bf8eef83.png)|
15+
16+
With this shader you can create stunning outline effects when the mouse touches an object!
17+
Go, try it out!
18+
19+
## How to use
20+
21+
### First time users: Clone the repo and start the demo project
22+
The repository contains a small demo project with a single room and some objects that will react on mouse_over with various outlines.
23+
There are some key bindings to alter the outline, let objects rotate, so you can see the surfaces correctly measure the real bbox of the outlined sprite, even when rotating.
24+
25+
The demo room will print the available key bindings on the screen, so just start it up and experiment!
26+
27+
### Get the package
28+
In the _Releases_ section of the repository you can find a history of releases of this shader drawer.
29+
The packge contains only the necessary files to be imported in your project.
30+
When importing, a `outline-shader-drawer` group is created in the root of your project. Move it to a location that fits your project best.
31+
32+
33+
Find the documentation in the [Wiki](https://github.com/Grisgram/gml-outline-shader-drawer/wiki).
34+
35+
Licence: MIT (Contained in the repository)
36+
37+
Authors: Grisgram and Juju Adams
38+
39+
40+
(c)2022 risingdemons.com

0 commit comments

Comments
 (0)