Giter Site home page Giter Site logo

armour's Introduction

Armour

Language: English | 中文简体

What is Armour ?

A outline effect tool for Godot. Putting your models in armor.

Features

  • No need to write shader, easy to use
  • Customized layer to prevent conflicts
  • Outline parameters are adjustable

Install

Godot 3.0+ is supported. GLES2 is not supported

  • Download this repository

  • Copy the directory named Armour into your project

  • In the Godot editor, select "Project -> Project Settings -> AutoLoad"

  • Add a script named Armour.gd

Note: Armour does not work properly if GLES2 is used.

Examples

Armour.INIT({
    "layer": 10,
    "camera": camera,
})
Armour.SET(mesh, true)
Armour.SET(mesh, false)

API

INIT

  • Description: Initialize the tool and must be called before the SET method.

  • Output: Boolean

  • Input: Dictionary

  • Usage:

var res_bool = Armour.INIT({
    "layer": 10,
    "camera": camera,
    "outline_width": 5,
    "outline_color": Color(1.0, 0.0, 0.0, 0.3),
})
print(res_bool)

SET

  • Description: Control the visibility of the mesh outline.

  • Output: Boolean

  • Input: Mesh, Boolean

  • Usage:

# or Armour.SET(mesh)
var res_bool = Armour.SET(mesh, true)
print(res_bool)

var res_bool = Armour.SET(mesh, false)
print(res_bool)

armour's People

Contributors

tony709394 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

boyquotes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.