diff --git a/Effects/PBREffect.fx b/Effects/PBREffect.fx index ca57701..9d49a36 100644 --- a/Effects/PBREffect.fx +++ b/Effects/PBREffect.fx @@ -92,7 +92,7 @@ PixelShaderInput main_vs(VertexShaderInput input) #define NORMALS #define UV #define HAS_NORMALS -#define USE_IBL +// #define USE_IBL #define USE_TEX_LOD DECLARE_TEXTURE(baseColourTexture, 0); diff --git a/Effects/PBREffect.fxb b/Effects/PBREffect.fxb index 3a2f02c..c6d92be 100644 Binary files a/Effects/PBREffect.fxb and b/Effects/PBREffect.fxb differ diff --git a/Importer.cs b/Importer.cs index 8cda1cc..ce4b783 100644 --- a/Importer.cs +++ b/Importer.cs @@ -200,7 +200,7 @@ namespace Smuggler ); } - var parameter = emissiveChannel.Value.Parameter; + var parameter = baseColorChannel.Value.Parameter; effect.BaseColorFactor = new Vector4( parameter.X, @@ -230,7 +230,10 @@ namespace Smuggler } } - effect.Light = new PBRLight(new Vector3(-0.5f, -0.5f, -0.5f), Color.White.ToVector3()); + effect.Light = new PBRLight( + new Vector3(0.5f, 0.5f, -0.5f), + new Vector3(10f, 10f, 10f) + ); /* FIXME: how to load cube maps from GLTF? */ /*