コード例 #1
0
        public DecalRenderHandle Add([NotNull] IWetDecal decal)
        {
            var instance = DecalRenderInstance.Create(decal, this);

            return(new DecalRenderHandle(instance));
        }
コード例 #2
0
 internal void Add(DecalRenderInstance decal)
 {
     _decals.Add(decal);
 }
コード例 #3
0
 internal void Remove(DecalRenderInstance decal)
 {
     _decals.Remove(decal);
 }
コード例 #4
0
 internal DecalRenderHandle([NotNull] DecalRenderInstance instance)
 {
     _instance = instance;
     _id       = instance.Epoch;
 }