public void LinkShaderSource(string source) { ShaderSource = X3DTypeConverters.UnescapeXMLValue(source).Trim(); if (parentShader != null && parentShape != null) { parentShader.ShaderParts.Add(this); } }