wip : lighting theatre & integrations

This commit is contained in:
2026-05-26 20:07:41 +02:00
parent 32172f4437
commit e7d5ef04dd
167 changed files with 40856 additions and 1774 deletions
+8
View File
@@ -2,6 +2,7 @@ Shader "Custom/Glitch"
{
Properties
{
[Toggle] _IsActive ("Active", Float) = 1.0
[Header(Fracture)]
_FractureAmount ("Fracture Amount", Range(0,1)) = 0.0
_CellScale ("Cell Scale", Float) = 8.0
@@ -41,6 +42,8 @@ Shader "Custom/Glitch"
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
#include "Packages/com.unity.render-pipelines.core/Runtime/Utilities/Blit.hlsl"
float _IsActive;
float _FractureAmount;
float _CellScale;
float _CellDisplace;
@@ -140,6 +143,11 @@ Shader "Custom/Glitch"
{
float2 uv = input.texcoord;
if (!_IsActive)
return SAMPLE_TEXTURE2D(_BlitTexture, sampler_LinearClamp, uv);
// Rien à faire si fracture = 0
if (_FractureAmount <= 0.001)
return SAMPLE_TEXTURE2D(_BlitTexture, sampler_LinearClamp, uv);