Exemple #1
0
        public static PBR_StandardShader Create()
        {
            RayTracer instance = RayTracer.GetInstance();

            if (!instance.IsInitialized())
            {
                return(null);
            }
            int shaderID = CreatePBRStandardShader();

            if (shaderID >= 0)
            {
                var shader = new PBR_StandardShader(shaderID);
                MessageHandler.Broadcast <ResourceObject>(MessageName.AddNewResource, shader);
                return(shader);
            }
            return(null);
        }
Exemple #2
0
 private void PBRStandardToolStripMenuItem_Click(object sender, EventArgs e)
 {
     RayTracerNet.PBR_StandardShader pbrStandardShader = RayTracerNet.PBR_StandardShader.Create();
 }