use albedo texture for test
parent
f1a2fe9776
commit
7a2290674c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue