Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit0a13e47b57

README.md

Example: lighting drawn by its own shaders

An example scene setup. It composes a sky whose backdrop is a material over a sky shader of its own, a directional light and a distant light placed by hand, an ambient light, a sky light that lights the scene from the drawn backdrop, height fog, and a post effect over a post-process shader of its own.

What it demonstrates: a setup's sky and its picture can come from shaders the setup carries. The sky shader draws the sky the material backdrop puts behind everything; the two lights state their own directions, so they keep them whatever the sky draws; and the post effect runs its own shader over the rendered frame.

Its assets are in this folder: sky.sky, backdrop_sky.material over backdrop_sky.shader, key.sceneLight, second.sceneLight, ambient.sceneLight, and split_tone.postEffect over split_tone.shader.