Giter Site home page Giter Site logo

godot-simple-sky-project's Introduction

godot-simple-sky-project

A simple Godot 4 project with day-night and season systems, a procedurally moving sun and moon, and a stylized sky shader.

Features:

  • Extremely simplified day-night system with support for seasons based on latitude and earth axial tilt
    • Calculated position of the sun and drawing it through the sky shader
    • Shorter days in winter and longer in summer
    • Changing position of the sun depends of the day of the year
  • Calculated position of the moon and drawing it through the sky shader
    • Include the inclination of the orbit and the period of time to cover it
  • Sky shader
    • Clouds based on noise function (without repeating texture)
    • Phases of the moon depending on the position of the sun

screen1 screen2 screen3

Shader effect on YouTube:

Watch the video

godot-simple-sky-project's People

Contributors

krzmig avatar alexrazor1337 avatar

Stargazers

rafa avatar  avatar  avatar Matthias avatar vearen avatar  avatar Rudakevych Vladyslav avatar jacek zablocki avatar Paulo Jorge PM avatar  avatar  avatar swimmingsoft avatar Joyless avatar George Pitoy avatar Aloïs Deniel avatar ALZZA avatar Killian avatar  avatar Steinar Elgsæter avatar  avatar  avatar Amir .DEV avatar Andrey Vasiliev avatar Ninety avatar Conor avatar askender avatar Michael Comperda avatar  avatar  avatar  avatar BananaHolograma avatar lionMac avatar Mauro Risonho de Paula Assumpção avatar Mark Skelton avatar Thijs Zumbrink avatar  avatar Andrew Williams avatar NarreDev avatar Joshua Anderson avatar Matt Young avatar rekyuu avatar  avatar baihan avatar  avatar  avatar Vikram Wrench avatar Benjamin Westphal avatar lackendara avatar  avatar Bharath Bhushan avatar Xing Yu avatar  avatar Marco Klein avatar Masaharu Hosomichi avatar  avatar Prashant avatar Samuele Radici avatar Roque avatar Yassen Tombokti avatar Hanif avatar Anthony avatar  avatar Konstantinos Mouratidis avatar Joanna May avatar  avatar Judah Perez avatar Russell Matney avatar Stephen Lains avatar  avatar

Watchers

 avatar Matthias avatar  avatar  avatar Hanif avatar

godot-simple-sky-project's Issues

lighting error when night

light shining from underneath terrain/other objects that should be blocking the light?
[picture to be inserted]

Change day_time while running

Is there any way to change while the day_time while debugging / running the project. Because if you change the value "Day Time" in Main it will be overwrited after one frame.

By the way. I really like your shader. All the features and the beautiful athmosphere.

Shadows

Faced with the problem that the shadows are not displayed.

I was trying to implement a simple sun clock.

The shadows enabled but light energy is turns to 0 when I run the AnimationPlayer, I also was trying to run with 1 - shadows also not works
image

Here DirectionalLight3D with shadows enabled
image

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.