diff options
| author | yum <yum.food.vr@gmail.com> | 2025-03-31 21:50:39 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-03-31 21:50:39 -0700 |
| commit | 2dfd6322587eb095a5a4f7b22d70e1abcc14d5e3 (patch) | |
| tree | 76b6f84628e07c722b74ce58b34e70d672e9541d /vertex_domain_warping.cginc | |
| parent | 3f1915bbd0e6176e625c484cf24a460cc88bfeac (diff) | |
Overhaul wrapped lighting
Now:
* k=0 -> lambertian
* k=0.5 -> half lambertian
* k=1.0 -> flat
All three points should be energy conserving, but I haven't done the
actual analysis yet.
Diffstat (limited to 'vertex_domain_warping.cginc')
| -rw-r--r-- | vertex_domain_warping.cginc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vertex_domain_warping.cginc b/vertex_domain_warping.cginc index 3bbc5cd..29c500a 100644 --- a/vertex_domain_warping.cginc +++ b/vertex_domain_warping.cginc @@ -2,6 +2,7 @@ #define __VERTEX_DOMAIN_WARPING_INC
#include "audiolink.cginc"
+#include "features.cginc"
#include "globals.cginc"
#include "math.cginc"
@@ -10,14 +11,14 @@ float3 domainWarpVertexPosition(float3 objPos) { float speed = _Vertex_Domain_Warping_Speed;
float scale = _Vertex_Domain_Warping_Scale;
float strength = _Vertex_Domain_Warping_Strength;
- float octaves = _Vertex_Domain_Warping_Octaves;
+ uint octaves = (uint) _Vertex_Domain_Warping_Octaves;
#if defined(_VERTEX_DOMAIN_WARPING_AUDIOLINK)
[branch]
if (AudioLinkIsAvailable()) {
float vu = AudioLinkData(ALPASS_FILTEREDVU_INTENSITY + uint2(0, 0));
- strength += vu * _Vertex_Domain_Warping_Audiolink_VU_Factors.x;
- scale += vu * _Vertex_Domain_Warping_Audiolink_VU_Factors.y;
+ strength += vu * _Vertex_Domain_Warping_Audiolink_VU_Strength_Factor;
+ scale += vu * _Vertex_Domain_Warping_Audiolink_VU_Scale_Factor;
}
#endif
|
