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()