Skip to content
Grisgram edited this page May 31, 2023 · 7 revisions

Outline Shader Drawer Wiki

How to use

First time users: Clone the repo and start the demo project

The repository contains a small demo project with a single room and some objects that will react on mouse_over with various outlines. 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.

The demo room will print the available key bindings on the screen, so just start it up and experiment!

Get the package

In the Releases section of the repository you can find a history of releases of this shader drawer. The packge contains only the necessary files to be imported in your project. 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.

Contained Files in the package

File Description
outline_drawer (Script) This is the class that will activate the shader.
OutlineObject (Object) This is a basic implementation of the outline_drawer.
The object holds some instance variables and can be used as a base object in your project.
All children of this will be able to draw themselves outlined.
OutlineObjectBaked (Object) A child of OutlineObject, but it will prebake all frames of the sprite, so rendering is faster, at the cost of flexibility. All pulse features will not work with this object.
shd_outline (Shader) This is the shader code that performs the outlining.

More Details here: [ OutlineObject and OutlineObjectBaked ] [ outline_drawer ]