示例#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));
        }