예제 #1
0
            public void AppendBlockInstance(BlockInstance blockInstance, Rendering.ShaderType stageType)
            {
                List <StageElement> stageElements = GetElementsForStage(stageType);

                if (stageElements == null)
                {
                    throw new Exception($"Stage {stageType} is not valid.");
                }

                stageElements.Add(new StageElement {
                    BlockInstance = blockInstance
                });
            }
예제 #2
0
 public void AddDefaultBlockInstance(BlockInstance blockInstance)
 {
     defaultBlockInstances.Add(blockInstance);
 }