diff options
| author | yum <yum.food.vr@gmail.com> | 2024-07-01 01:32:06 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-07-01 01:32:06 -0700 |
| commit | a445f2bce613757ae04927c19d36bd473ff22522 (patch) | |
| tree | 8964ca54726b5ceddde3ed9f3ab1db16b646ac2e /globals.cginc | |
| parent | a57eca5f6f8756209018d034a12e0d75f9ee1ef5 (diff) | |
Add angle control to decals
Also:
* Fix decal mipmap calculation
* Decals are now sampled with a clamping sampler, not repeat
* Decal scaling now occurs at center, not bottom left
Diffstat (limited to 'globals.cginc')
| -rw-r--r-- | globals.cginc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/globals.cginc b/globals.cginc index 51f8a2f..9a60bf8 100644 --- a/globals.cginc +++ b/globals.cginc @@ -4,6 +4,7 @@ #include "AutoLight.cginc" SamplerState linear_repeat_s; +SamplerState linear_clamp_s; float4 _Color; float _Metallic; @@ -116,21 +117,25 @@ float _PBR_Overlay3_Mask_Invert; texture2D _Decal0_BaseColor; float4 _Decal0_BaseColor_ST; float _Decal0_Emission_Strength; +float _Decal0_Angle; #endif #if defined(_DECAL1) texture2D _Decal1_BaseColor; float4 _Decal1_BaseColor_ST; float _Decal1_Emission_Strength; +float _Decal1_Angle; #endif #if defined(_DECAL2) texture2D _Decal2_BaseColor; float4 _Decal2_BaseColor_ST; float _Decal2_Emission_Strength; +float _Decal2_Angle; #endif #if defined(_DECAL3) texture2D _Decal3_BaseColor; float4 _Decal3_BaseColor_ST; float _Decal3_Emission_Strength; +float _Decal3_Angle; #endif #if defined(_EMISSION) |
