minor PBR effect tweak

PBR
Evan Hemsley 2020-07-31 13:57:07 -07:00
parent f18a8f38be
commit 37b45caea2
3 changed files with 6 additions and 3 deletions

View File

@ -92,7 +92,7 @@ PixelShaderInput main_vs(VertexShaderInput input)
#define NORMALS #define NORMALS
#define UV #define UV
#define HAS_NORMALS #define HAS_NORMALS
#define USE_IBL // #define USE_IBL
#define USE_TEX_LOD #define USE_TEX_LOD
DECLARE_TEXTURE(baseColourTexture, 0); DECLARE_TEXTURE(baseColourTexture, 0);

Binary file not shown.

View File

@ -200,7 +200,7 @@ namespace Smuggler
); );
} }
var parameter = emissiveChannel.Value.Parameter; var parameter = baseColorChannel.Value.Parameter;
effect.BaseColorFactor = new Vector4( effect.BaseColorFactor = new Vector4(
parameter.X, 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? */ /* FIXME: how to load cube maps from GLTF? */
/* /*