use albedo texture for test

main
cosmonaut 2020-08-03 18:27:47 -07:00
parent f1a2fe9776
commit 7a2290674c
1 changed files with 6 additions and 1 deletions

View File

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