GithubHelp home page GithubHelp logo

dsfonts's Introduction

DSFonts

This is a set of shaders and materials for the distance field font for Defold engine .

Installation

You can use the DSFonts library in your own project by adding this project as a Defold library dependency. Open your game.project file and in the dependencies field under project add:

https://github.com/sergeysinyavsky/dsfonts/archive/master.zip

Example

screenshot

Shaders

Bevel shader

Parameters:

step.x - change bevel level. Default 1024.
step.y - change brightness. Default 2.

screenshot

Bevel normal shader

Parameters:

step.x - change bevel level. Default 1024.

screenshot

Gradient shader

Parameters:

color - Normal color will be left in x direction and top in y direction.
next_color - Second color will be right in x direction and bottom in y direction.. Default (1, 1, 1, 1).
direction.x - Specifies the direction for the x coordinate. From -1 to 1. Default 1.
direction.y - Specifies the direction for the y coordinate. From -1 to 1. Default 0.

screenshot

Glow shader

Parameters:

glow_color - Color for glow. Default (1, 1, 1, 1).
strength.x - Outer strength. Default 0.
strength.y - Inner strength. Default 2.
strength.z - Sharpness strength. Default 30.

screenshot

Gradient bevel shader

Parameters:

step.x - change bevel level. Default 1024.
step.y - change brightness. Default 2.
color - Normal color will be left in x direction and top in y direction.
next_color - Second color will be right in x direction and bottom in y direction.. Default (1, 1, 1, 1).
direction.x - Specifies the direction for the x coordinate. From -1 to 1. Default 0.
direction.y - Specifies the direction for the y coordinate. From -1 to 1. Default 1.

screenshot


dsfonts's People

Contributors

sergeysinyavsky avatar

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.