GithubHelp home page GithubHelp logo

ramayac / defold-pixel-planets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from selimanac/defold-pixel-planets

0.0 1.0 0.0 748 KB

Port of Pixel Planets shaders to Defold

GLSL 57.57% Lua 42.43%

defold-pixel-planets's Introduction

Pixel Planets

Pixel Planet shaders originally created by Deep-Fold, ported to Defold game engine by me.

See it in action: https://selimanac.itch.io/defold-pixel-planet-generator

Please visit his itch.io project page here: https://deep-fold.itch.io/pixel-planet-generator
All credit goes to Deep-Fold
Thanks to @britz for lowrez template.

Uniforms

No logic here...

/*
x = size
y = pixels
z = rotation
w = stretch
*/
uniform lowp vec4 transform;

/*
x = seed
y = time
z = time_speed
w = OCTAVES
*/
uniform lowp vec4 generic;

/*
x = light_border_1
y = light_border_2
z = bands
w =
*/
uniform lowp vec4 border;

/*
x = cover (cloud)
y = curve (cloud)
z = dither_size
w = scale (scale_rel_to_planet)
*/
uniform lowp vec4 modify;


/*
x = light_origin.x 
y = light_origin.y 
z = light_distance1
w = light_distance2
*/
uniform lowp vec4 lights;

/*
x = ring_width
y = ring_perspective
z = cutoff (lake_cutoff / land_cutoff / river_cutoff)
w = TILES
*/
uniform lowp vec4 extras;

/*
x = circle_amount
y = circle_size
z =  storm_width
w =  storm_dither_width
*/
uniform lowp vec4 circles;

defold-pixel-planets's People

Contributors

selimanac avatar

Watchers

 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.