public void AttachOutPut(string ShaderParameterName, Geometry3D Geometry, bool IsPing) { if (IsPing) { if (!OutputGeometries3DPing.ContainsKey(Geometry)) { OutputGeometries3DPing.Add(Geometry, ShaderParameterName); } } else { if (!OutputGeometries3DPong.ContainsKey(Geometry)) { OutputGeometries3DPong.Add(Geometry, ShaderParameterName); } } }
public void AttachOutPutRange(Dictionary <Geometry3D, string> AddList, bool IsPing) { if (IsPing) { foreach (KeyValuePair <Geometry3D, string> Entry in AddList) { if (!OutputGeometries3DPing.ContainsKey(Entry.Key)) { OutputGeometries3DPing.Add(Entry.Key, Entry.Value); } } } else { foreach (KeyValuePair <Geometry3D, string> Entry in AddList) { if (!OutputGeometries3DPing.ContainsKey(Entry.Key)) { OutputGeometries3DPing.Add(Entry.Key, Entry.Value); } } } }