From: hgn Date: Sat, 2 Dec 2023 18:04:42 +0000 (+0000) Subject: map changes X-Git-Url: https://harrygodden.com/git/?a=commitdiff_plain;h=aae2ef3e087d980130ea12cb90df15bb3d85ec65;p=carveJwlIkooP6JGAAIwe30JlM.git map changes --- diff --git a/maps_src/dev_hub/main.mdl b/maps_src/dev_hub/main.mdl index 1c4e699..5772a92 100644 Binary files a/maps_src/dev_hub/main.mdl and b/maps_src/dev_hub/main.mdl differ diff --git a/maps_src/dev_tutorial/main.mdl b/maps_src/dev_tutorial/main.mdl index cebd583..4fac47a 100644 Binary files a/maps_src/dev_tutorial/main.mdl and b/maps_src/dev_tutorial/main.mdl differ diff --git a/shaders/scene_foliage.h b/shaders/scene_foliage.h index 8dbbc29..041dcd8 100644 --- a/shaders/scene_foliage.h +++ b/shaders/scene_foliage.h @@ -44,9 +44,12 @@ static struct vg_shader _shader_scene_foliage = { "out vec3 aWorldCo;\n" "\n" "void main(){\n" -" vec3 world_pos0 = uMdl * vec4( a_co, 1.0 );\n" +" vec4 vsine = sin(vec4(uTime + a_co.x, uTime*0.7 + a_co.z,uTime,uTime*1.3));\n" +" vec3 co = a_co + vsine.xyz * a_norm.w * 0.5;\n" +" \n" +" vec3 world_pos0 = uMdl * vec4( co, 1.0 );\n" " vec4 vproj0 = uPv * vec4( world_pos0, 1.0 );\n" -" vec4 vproj1 = uPvmPrev * vec4( a_co, 1.0 );\n" +" vec4 vproj1 = uPvmPrev * vec4( co, 1.0 );\n" "\n" " vs_motion_out( vproj0, vproj1 );\n" "\n"