Skip to content
프로젝트

clayjohn/godot-volumetric-cloud-demo-v2

GitHub에서 보기

소개

V2 of https://github.com/clayjohn/godot-volumetric-cloud-demo

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+2
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Volumetric Clouds

This is a demo implementing one way of drawing volumetric cloudscapes in Godot using compute shaders and sky shaders.

This demo uses animated clouds generated from ray marching 3D textures. It features automatic time of day adjustments just by rotating the sun.

This is version 2. This approach is more in line with modern approaches to drawing clouds. It also relies on some Godot features only present in version 4.2 (i.e. TextureRD for writing to a texture using compute shaders and reading that texture in the Godot scene).

This demo requires Godot 4.2 or later.

Main differences from version 1:

  1. Physically accurate atmosphere for much more realistic sky and lighting
  2. Renders the hemisphere to a texture over 64 frames
    • Interpolates between two copies of that texture to hide changes
    • Very slow update, so sun has to move slowly otherwise the blending is obvious
  3. Can only run on the Forward+ or Mobile rendering backends
  4. Much faster (~20x)

TODOs:

  1. Implement hierarchical ray marching (should make this even faster).
  2. Use the transmittance LUT parametrization from Bruneton (2017)
  3. Implement a noise generator so custom noise can be created and tweaked.

How to use

In your Environment, assign "cloud_sky/clouds_sky.tres" to the "Sky" property. Then tweak the exposed properties as you see fit.

Attach the "sun.gd" script to the DirectionLight3D that represents your sun. The system will pull direction, energy, and color from the DirectionalLight3D automatically.

Screenshots

Screenshot

Screenshot

Screenshot

관련 프로젝트 살펴보기

불러오는 중…