From 7a2290674c7bf954436b967736c7b38588b93e97 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Mon, 3 Aug 2020 18:27:47 -0700 Subject: [PATCH] use albedo texture for test --- PreShaderTest/PreShaderTestGame.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PreShaderTest/PreShaderTestGame.cs b/PreShaderTest/PreShaderTestGame.cs index 4efb9b7..b855263 100644 --- a/PreShaderTest/PreShaderTestGame.cs +++ b/PreShaderTest/PreShaderTestGame.cs @@ -8,7 +8,8 @@ namespace PreShaderTest GraphicsDeviceManager graphics; VertexBuffer vertexBuffer; - Effect pbrEffect; + Smuggler.PBREffect pbrEffect; + Texture2D albedoTexture; public PreShaderTestGame() { @@ -34,7 +35,11 @@ namespace PreShaderTest ) }); + albedoTexture = new Texture2D(GraphicsDevice, 1, 1); + albedoTexture.SetData(new Color[] { new Color(1, 0, 1, 1) }); + pbrEffect = new Smuggler.PBREffect(GraphicsDevice); + pbrEffect.AlbedoTexture = albedoTexture; } protected override void UnloadContent()