예제 #1
0
            internal static DecalRenderInstance Create([NotNull] IWetDecal decal, [NotNull] WetDecalSystem system)
            {
                var registration = Pool.Get();

                registration._system = system;
                registration.Initialize(decal);

                return(registration);
            }
예제 #2
0
            private void Initialize(IWetDecal decal)
            {
                Decal = decal;

                if (PropertyBlock != null)
                {
                    PropertyBlock.Clear();
                }

                UpdateProperties(true);
            }
예제 #3
0
 public void QueueForUpdate(IWetDecal decal)
 {
     SharedState.ToUpdate.Add(decal);
 }
예제 #4
0
        public DecalRenderHandle Add([NotNull] IWetDecal decal)
        {
            var instance = DecalRenderInstance.Create(decal, this);

            return(new DecalRenderHandle(instance));
        }