polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit bf0779cf6390ec8ffcc687a64aea573c9955928e
parent 979e8253cf2880b74c2b63ffad5bb7bd5fadbd89
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 31 Oct 2018 10:38:16 -0700

weird cloud fn issue

Diffstat:
Metc/shaders/lighting.glsl | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/etc/shaders/lighting.glsl b/etc/shaders/lighting.glsl @@ -3,17 +3,17 @@ #include noise.glsl -float clouds(vec3 position) { - float cloud_speed = 20000.0; - float cloud_pos = time * cloud_speed; - float cloud_trans = vec3(cloud_pos, cloud_pos, 0.0); +// float clouds(vec3 position) { +// float cloud_speed = 20000.0; +// float cloud_pos = time * cloud_speed; +// float cloud_trans = vec3(cloud_pos, cloud_pos, 0.0); - float clouds = snoise((position + cloud_trans)/800.0); - clouds *= max(0.0, dot(light_dir, vec3(0.0,0.0,1.0))); - clouds *= 0.35 * exp(clouds * -0.3); +// float clouds = snoise((position + cloud_trans)/800.0); +// clouds *= max(0.0, dot(light_dir, vec3(0.0,0.0,1.0))); +// clouds *= 0.35 * exp(clouds * -0.3); - return clouds; -} +// return clouds; +// } vec3 standard_light(vec3 color, vec3 position) {