In this recipe we are going to create about the simplest 3D scene possible, a single red triangle centered on the screen.
Load PlayStation Mobile Studio and create a new project. You can download the complete project as Ch7_Example1
Change
AppMain.cs
to match the following code:using System; using Sce.PlayStation.Core; using Sce.PlayStation.Core.Graphics; using Sce.PlayStation.Core.Input; namespace Ch7_Example1 { public class AppMain { public static void Main (string[] args){ var graphics = new GraphicsContext (); graphics.SetClearColor (255.0f, 255.0f, 255.0f, 255.0f); var projectionMatrix = Matrix4.Perspective(FMath.Radians(45.0f),graphics.Screen.AspectRatio,1.0f,100000.0f); var viewMatrix = Matrix4.LookAt(new Vector3(0.0f,1.0f,-3.0f), new Vector3(0.0f,0.0f,0.0f), Vector3.UnitY); var shaderProgram = new ShaderProgram("/Application/shaders/simple.cgx"); var vertexBuffer...